The default thread stack size is 160KB in 32-bit mode and 320KB in 64-bit mode. If you create a lot of threads, you might run out of stack space. You can increase the size of the threads stack by setting the COBMAINSTACK environment variable.
-526716