[Mono-dev] EntryPointNotFoundException with __Internal method

Marcelo Zabani mzabani at gmail.com
Mon Apr 29 19:20:33 UTC 2013

When embedding Mono within Nginx, I received the following exception:

*Unhandled Exception: System.EntryPointNotFoundException:
*  at (wrapper managed-to-native) Nam.NginxMethods:ngx_log_error
*  at Nam.NginxMethods.LogInfo (IntPtr log, System.String msg) [0x00000] in
<filename unknown>:0 *

The DllImported method is this:

*[DllImport ("__Internal", EntryPoint="log_error_core_wrapper")]*
*public static extern void ngx_log_error(uint level, IntPtr log, int err,
string msg);*

As for the executable:

*$ nm nginx | grep log_error_core_wrapper*
*0000000000463267 T log_error_core_wrapper*

Please note that log_error_core_wrapper is a function of mine that calls
another nginx function.

What am I missing here?
Also, I keep getting
== 0*. Are there any hints as to what this could be?

Thanks a lot.

Marcelo Zabani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130429/2b31d8b4/attachment-0001.html>

More information about the Mono-devel-list mailing list