[Mono-dev] mono 2.11.4 on Windows "GetThreadContext failed"
joncham at gmail.com
Mon Nov 19 16:27:26 UTC 2012
One thing I did which seems to largely eliminate the problem is to adjust
the GC to just track threads that are registered. This is quite a change
from current behavior of tracking all threads, so I never submitted the
changes upstream. It seems to alleviate the issue as sometimes threads may
be executing in kernel mode, or be in some weird state where their context
cannot be retrieved. In practice the threads in question have never been a
'mono' thread executing managed code, but other random threads. Thus the GC
does not try to pause/inspect/resume these threads and seems much more
I'll look at cleaning up the patch and posting on my branch if not
submitting for upstream.
On Mon, Nov 19, 2012 at 11:16 AM, Frank Fuchs <fk.fuchs at googlemail.com>wrote:
> Dear Robert,
> the GetLastError() returns 31. I think I use lazy-loading - I just put
> the libgc-1.dll in the apps folder as well as libmono-2.dll.
> So what would you suggest instead?
> Thank you! Best,
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list