[Mono-dev] Registering internal calls at runtime

Robert Jordan robertj at gmx.net
Sat Dec 30 12:14:50 EST 2006


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 code tries to
> call it.
> 
> Is there a way to register new internal calls after the program
> started execution ?

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.

> 
> Also, do internal calls offer significant performance benefits
> against P/Invoke ?

Yes, because no marshaling will be performed.

Robert




More information about the Mono-devel-list mailing list