Re: [Mono-dev] Embedding Mono and HandleRef...

2006-12-31 Thread Robert Jordan
Thomas Wiest wrote: Robert Jordan wrote: You don't need HandleRefs when using icalls and the embedded API. Just declare the icalls as non-static and they will automatically get the MonoObject* pointer of the managed object: Ah, very interesting. I assume this increases the ref count which

Re: [Mono-dev] Embedding Mono and HandleRef...

2006-12-30 Thread Robert Jordan
Thomas Wiest wrote: Hey, I'm using the Mono embedding API and I'm using HandleRef's instead of IntPtr's (as per the instructions on the interop page). http://www.mono-project.com/Interop_with_Native_Libraries However, the HandleRef's seem to only be marshaled to IntPtr's if

Re: [Mono-dev] Embedding Mono and HandleRef...

2006-12-30 Thread Thomas Wiest
Robert Jordan wrote: You don't need HandleRefs when using icalls and the embedded API. Just declare the icalls as non-static and they will automatically get the MonoObject* pointer of the managed object: Ah, very interesting. I assume this increases the ref count which assures that the