[Mono-dev] Marshal.GetFunctionPointerForDelegate and non-mono threads

2013-01-28 Thread sebastian
We run a program under mono which uses a 3rd party C++ library. Mono is responsible for running the application, that is, we are not using the mono_embed API, but rather just PInvoke to talk to the C++ library. This library has some callbacks which we subscribe to using

Re: [Mono-dev] Marshal.GetFunctionPointerForDelegate and non-mono threads

2013-01-28 Thread Alan
Do you see these issues when running with the soft debugger attached? If so, that was a bug which was fixed a few days ago. If you're seeing the issue without the debugger, a small testcase would be great for figuring this out. Alan On 28 January 2013 18:42, sebastian

Re: [Mono-dev] Marshal.GetFunctionPointerForDelegate and non-mono threads

2013-01-28 Thread sebastian
We are not using the debugger. We're not sure how the library in question creates its threads. We don't have access to its source code and it's proprietary. Putting together a full repro would be hard. The callback is a simple function which picks up a logged string and sends it to NLog by way