[Mono-devel-list] P/Invoke question -- debugging

Zoltan Varga vargaz at gmail.com
Thu Feb 24 07:07:27 EST 2005


                                                       Hi,

  This error message means the thread calling the delegate is not
registered with the
runtime. You need to call the API function mono_thread_attach () to do
this. This is similar
to the AttachThread function in Java JNI.

                                   Zoltan

On Wed, 23 Feb 2005 16:44:04 -0800, Frank Bergmann
<frank_bergmann at kgi.edu> wrote:
> Hello List,
> 
> Another question relating to P/Invoke on Mono. The problem occurs when a
> mono-callback function is called from a C-library (the delegate to the
> callback was previously passed to the library).
> 
> Instead of calling the delegate I get:
> 
> ** ERROR **: file mini.c: line 7146 (mono_get_lmf_addr): should bot be
> reached aborting...
> 
> At first I was suspecting problems with the calling conventions. But
> since the callback function is not even entered I'm at a loss. My
> attempts to debug the mono app and the c-library at the same time
> failed. Also it happens under Mono 1.0.5 and Mono 1.1.4 ...
> 
> About the environment ... I'm currently testing Mono under Suse 9.2.
> 
> Thanks for your help
> 
> Frank
> 
> P.S.: while looking for a solution I found:
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list