Jonathan Pryor-2 wrote
> 
> Does this happen on mono/linux or mono/OSX? Or just on Android?
> 
> Could you please file a test case so that we can investigate?
> 

I tested on windows with this example: 
http://lists.ximian.com/pipermail/mono-bugs/2006-February/038966.html
http://lists.ximian.com/pipermail/mono-bugs/2006-February/038966.html 
and it seems to works.


> Output:
> Attaching thread...
> Attaching thread...
> Thread (0329E000) attached.
> Detaching thread (0329E000)
> Thread (0329E000) detached.
> (.....)
> 

My project is rather big..but i'll try to reduce to a simple test case when
I get the chance.


On an unrelated subject, i would appreciate your help with this situation:
>From the DLL side (C#) I have a class named A, which has a field of the type
B (another class in the DLL).
>From the C++ side, I:
   -initialize the mono runtime 
   -load the assembly
   -create an object of type MyClassTest and initialize it 
         (obj = mono_object_new (domain, klass_MyClassTest);)
         (this class has a method that receives as parameters 2 classes from
other DLL, 
             and I initialize this classes as obj1 and obj2)
  -call the method on the DLL
         void* params[] = { obj1, &obj2 }; //obj2 being the class A with a
field B
         mono_runtime_invoke (MyMethod, obj, params, NULL);

My question is: Since &obj2 will have the result of the method execution,
how can I have this class represented in a C++ class (to use it around and
work with its fields) instead of having a obj2 of type MonoObject?


Thank you for your time.

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Link-to-libmonosgen-2-0-so-in-emulator-tp5649643p5668355.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to