[Mono-dev] Building with Visual Studio 2005
janne.rantala at gmail.com
Mon Jul 10 06:38:52 EDT 2006
2006/7/10, Rusmin Susanto <rusminsusanto at yahoo.com>:
> I am trying to build Mono with Visual Studio 2005. I managed to build it.
> However, when I run mono, I got the following error message:
> "Thread %p calling into managed code is not registered with the GC. On
> UNIX, this can be fixed by #include-ing < gc.h> before <pthread.h> in the
> file "
> After debugging, I found that the following function returns 0 because
> both GC_DLL and GC_INSIDE_DLL are not defined. This function should return
> int GC_thread_is_registered (void)
> #if defined(GC_DLL) || defined(GC_INSIDE_DLL)
> /* Registered by DllMain */
> return 1;
> /* FIXME: */
> return 0;
> I try to modify the code and guess where to define GC_DLL and
> GC_INSIDE_DLL. But still no luck so far.
> Can someone tell me what's wrong? Where should I define GC_DLL and
> GC_INSIDE_DLL ? Or what should I do?
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.<http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/+%0A>
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
I used to get the same error. I've just commented those lines from
threads.cand at least I've been able to run embedded samples without
is what Sebastien Pouliot replied me at the time:
"Yes, I'm unsure right now if it's a configuration problem (wrong define)
or if some recent changes broke this.
To run the sample I used the debugger to bypass the check (you could
also comment the code). After that I didn't have any problem running the
So can't really say if it's good solution or not.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list