Closed nowakpe closed 5 years ago
I just tried examples from here in Unity and I had an exception when using CircularBuffer.
_EntryPointNotFoundException: mono_win32_compatCopyMemory
CircularBuffer is somewhere using CopyMemoryPtr method ([DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)])
What helped me to fix this error: change EntryPoint = "CopyMemory" for EntryPoint = "RtlCopyMemory"
That's a kernel-mode function. Check the charset declaration and linkage specifiers of your pinvoke methods.
This looks to be a Mono specific issue. Using RtlCopyMemory fails otherwise.
I just tried examples from here in Unity and I had an exception when using CircularBuffer.
_EntryPointNotFoundException: mono_win32_compatCopyMemory
CircularBuffer is somewhere using CopyMemoryPtr method ([DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)])
What helped me to fix this error: change EntryPoint = "CopyMemory" for EntryPoint = "RtlCopyMemory"