[Mono-dev] Mono 2.0 (arm): Reverse PInvoke can cause memory corruption?

FirstName LastName mousse_man at hotmail.com
Fri Oct 10 15:28:09 EDT 2008


Hi,
 
Recently, I asked about doing reverse pinvoke from a native thread that caused an assert in mini-arm.c.
 
A fix was done and I'm able to do it.  But know, I have a feeling that I have memory corruption.  My application is crashing at different times
 
and display different stack traces.
 
I have a general question regarding GC.  When the GC runs, does it stop all threads in the process, even those created in unmanaged.
 
I asking the following because I'm wondering what would happen if the GC collects and at the same time, a reverse pinvoke is done from a native thread (back to managed code)?
 
Can this be an issue?
 
 
_________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081010/bdd0b41b/attachment.html 


More information about the Mono-devel-list mailing list