-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.NullReferenceException in UnsafeNativeMethods.OnCallback #31
Comments
I have updated the 64-bit library to version 1.2.1 |
Any updates on this? getting the same error :) and updated library didn't fix it for me |
Please, test this change: [DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)] [DllImport("kernel32.dll", EntryPoint = "RtlMoveMemory", SetLastError = false, ExactSpelling = true)] |
Hey @JosePineiro , it was about a multi-threaded scenario for me, and the fact that |
UnsafeNativeMethods.OnCallback = new UnsafeNativeMethods.WebPMemoryWrite(MyWriter); is causing an exception:
System.NullReferenceException Object reference not set to an instance of an object. at UnsafeNativeMethods.WebPEncode_x64(WebPConfig& config, WebPPicture& picture) at WebP.AdvancedEncode(Bitmap bmp, WebPConfig config, Boolean info)
I can only seem to reproduce this on a server; running in development mode works fine.
The text was updated successfully, but these errors were encountered: