[Mono-list] NullReferenceException when calling thunk
Robert Jordan
robertj at gmx.net
Wed Jan 23 10:57:19 UTC 2013
Hi,
On 23.01.2013 06:43, tomason wrote:
> Where MonoAddFunc is defined like this:
> typedef float (*MonoAddFunc)(MonoObject*, float, float);
You you're testing under Windows, the typedef must be stdcall:
typedef float (__stdcall *MonoAddFunc)(MonoObject*, float, float);
A note on thunks: this is a seldom used feature, so odds are
that the code got a little bitrotten. Please file a bug if
you can rule out the stdcall issue, and I'll take a look
at it.
Robert
More information about the Mono-list
mailing list