brunoklein99 / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Avoid PInvokeStackImbalance errors #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In VS2010 debug-mode (x86 only), an PInvokeStackImbalance error is throw at 
'memcpy' and 'memset' calls (Core.SystemTools).

To prevent that annoying message, just set both calls to 
"CallingConvention.Cdecl":

[DllImport( "ntdll.dll", CallingConvention = CallingConvention.Cdecl)]

Original issue reported on code.google.com by willia...@gmail.com on 4 May 2011 at 9:34

GoogleCodeExporter commented 8 years ago
Updated interoping of memcpy() and memset() to use Cdecl calling convention.

Committed in revision 1452. Will be released in the next version (2.2.0).

Original comment by andrew.k...@gmail.com on 5 May 2011 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 28 Jul 2011 at 9:48

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 10 Aug 2011 at 9:35