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 obj

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

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

2006-12-30 Thread Thomas Wiest
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 you're using p/invoke's. I've attac

Re: [Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Robert Jordan
Argiris Kirtzidis wrote: >> AFAIK there is no way to do this after the class (or even the assembly?) >> with the corresponding internal call has been loaded by the runtime. > > Before 'mono_jit_exec' I add an internal call 'do_icall_registration'. In > the managed code, If I add the call 'do_ical

[Mono-dev] TagLib docs generation?

2006-12-30 Thread Andrés G. Aragoneses [ knocte ]
I've noticed the following type of files: http://svn.myrealbox.com/source/trunk/taglib-sharp/docs/en/TagLib/SupportedMimeType+%3c%3ec__CompilerGenerated1+%3c%3ec__CompilerGenerated3.xml http://svn.myrealbox.com/source/trunk/taglib-sharp/docs/en/TagLib/SupportedMimeType+%3c%3ec__CompilerGenerated2+

Re: [Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Argiris Kirtzidis
> AFAIK there is no way to do this after the class (or even the assembly?) > with the corresponding internal call has been loaded by the runtime. Before 'mono_jit_exec' I add an internal call 'do_icall_registration'. In the managed code, If I add the call 'do_icall_registration' to a static clas

Re: [Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Robert Jordan
Argiris Kirtzidis wrote: > Hi all, > > I'm using the Mono embedding API, and noticed that if I call > 'mono_add_internal_call' after the managed program started execution > (with 'mono_jit_exec'), the internal call doesn't get registered and > a MissingMethodException is thrown when the managed co

[Mono-dev] Registering internal calls at runtime

2006-12-30 Thread Argiris Kirtzidis
Hi all, I'm using the Mono embedding API, and noticed that if I call 'mono_add_internal_call' after the managed program started execution (with 'mono_jit_exec'), the internal call doesn't get registered and a MissingMethodException is thrown when the managed code tries to call it. Is there a w