The same code in .net winforms application is working on my machine while crashing on other machine with the following exception.
SevenZipExtractor.SetLibraryPath(Path.Combine(Environment.CurrentDirectory,
"x86", "7z.dll"));
var extractor = new SevenZipExtractor("myfile.7z", "abcd");
Myfile.7z have some text files with Unicode text
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
System.ArgumentException: Cannot marshal: Encountered unmappable character. at System.String.ConvertToAnsi(Byte* pbNativeBuffer, Int32 cbNativeBuffer, Boolean fBestFit, Boolean fThrowOnUnmappableChar) at System.StubHelpers.CSTRMarshaler.ConvertToNative(Int32 flags, String strManaged, IntPtr pNativeBuffer) at SevenZip.NativeMethods.LoadLibrary(String fileName) at SevenZip.SevenZipLibraryManager.LoadLibrary(Object user, Enum format) at SevenZip.SevenZipExtractor.Init(String archiveFullName) at SevenZip.SevenZipExtractor..ctor(String archiveFullName, String password) at AlMadinaLibrary.Packages.Packager.GetFileObject[T](String dibx, String fileName) at TestFile.Form1.LoadDropdownList()
@"C:\Test.7z"). Have you tried that? - mjwills