[Mono-dev] mono 2.11.4 on Windows "GetThreadContext failed"

Jonathan Chambers 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
robust.

I'll look at cleaning up the patch and posting on my branch if not
submitting for upstream.

- Jonathan


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,
> Frank
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20121119/d6585f4b/attachment.html>


More information about the Mono-devel-list mailing list