Page 2 of 2

Re: Crash when using coroutines

Posted: Thu Nov 28, 2019 5:13 pm
by Josef Templ
by setting a smaller stack size (Coroutines.SetStackSize) it should be possible to start a larger number of coroutines.

golang starts with a size of only 4KB and increases that on demand.
With the native Windows fibers being used for BlackBox coroutines the minimum stack size is somewhere at 64 KB,
if I remember correctly. The native Windows fibers also grow on demand up to the specified max size but the
virtual memory space is reserved even if it is never fully committed.

- Josef

Re: Crash when using coroutines

Posted: Sat Dec 14, 2019 11:53 am
by Robert
The fix for this bug is now in the BlackBox master build (from build number 1127).
This is available by clicking "latest development version" on http://blackboxframework.org/index.php? ... page,en-us.

X512 - I don't need to thank you for reporting this bug (it had already been reported), but thank you for suggesting the fix which we had failed to find.
Robert Campbell
Chairman, BlackBox Framework Center.