MimeDetect icon indicating copy to clipboard operation
MimeDetect copied to clipboard

Crashes on certain file types like a .MSI or .JSON

Open dekenless opened this issue 5 years ago • 1 comments

Crashes on certain file types like a .MSI or .JSON:

System.AccessViolationException HResult=0x80004003 Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt. Source=mscorlib StackTrace: at System.String.wcslen(Char* ptr) at System.String.CtorCharPtr(Char* ptr) at System.Runtime.InteropServices.Marshal.PtrToStringUni(IntPtr ptr) at Winista.MimeDetect.URLMONMimeDetect.urlmonMimeDetect.GetMimeFromFile(String filename) at Winista.Mime.MimeTypes.GetMimeTypeFromFile(String filePath)

dekenless avatar Nov 19 '20 16:11 dekenless

Seems more a problem of interop in ASP.NET

issue could found here: https://stackoverflow.com/a/26061243

with a fix here: https://stackoverflow.com/a/18554243

wendt88 avatar Sep 14 '23 19:09 wendt88