fozzie wrote:
> Here is a set of tests to try to get a simple array of structs from managed
> to unmanaged code. No luck, but probably because of lack of expertise on my
> part. Can you help me to get them working? I think a delegate with ref
> parameter would be best, if possible.
> 
> http://www.nabble.com/file/p23358207/embed.zip embed.zip 

Dude, you're not calling the ctor of MonoEmbed! Since
all fields are set up in the ctor, your tests are all broken.


After

     instance = mono_object_new(domain, embedClass);
     mono_runtime_object_init(instance);

insert

     MonoMethod *ctor = mono_class_get_method_from_name (
        embeddClass, ".ctor", 0);

     ex = NULL;
     mono_runtime_invoke (ctor, instance, NULL, &ex);
     if (ex != NULL)
        abort ...



Robert

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to