[Gc] Re[27]: GC + Windows Mobile + Threads + Patch for WINCE

Ivan Maidanski ivmai at mail.ru
Tue Sep 15 00:48:09 PDT 2009


Hi!

Zeyi Lee <biosli at hotmail.com> wrote:
> > ...
> I change the code as you said. The program works.
> And I got Debug output and DebugBreak:
> ----------------------------------
> Small thread creation failed 8
> Small thread wait failed 6
> ...
> ---------------------------------
>  
> > Note 2: if this runs out of memory then retry without GC_GCJ_SUPPORT, ATOMIC_UNCOLLECTABLE.
> This case has the same DebugBreaks as well.
>  
> I run the program at large memory platform (free memory at least 65M), also has the DebugBreaks.
> I check the MSDN about CreateThread function(http://msdn.microsoft.com/en-us/library/ms885186.aspx):
> ---------------------------------
> If every thread has 1 MB of stack space, you can create a maximum of 32 threads.
> If you reduce the default stack size, you can create more threads. 
> ---------------------------------

Ok. Another MSDN doc says stack_size param passed to CreateThread() is ignored on WinCE. So, please retry with /F option: http://msdn.microsoft.com/en-us/library/ms864039.aspx

Bye.


More information about the Gc mailing list