I'm not sure, but I'll certainly give it a go - thanks!

On Oct 21, 2006, at 8:59 AM, Florijan Stamenkovic wrote:

If indeed you have a recursion which legally overflows, maybe you could re-implement your recursion to avoid that using multiple threads. The idea is that you attempt to find the stack length using:

workerThread.getStackTrace().length,

and then see if that length is approaching the maximum stack length, whatever value that might be. If so, you could continue the recursion in another thread.

Uhm, I just realized that this works only if every thread has it's own stack with a standard maximum size, and not if all the threads share only one stack. I don't know enough of how things work to say that, I assumed that every thread has a separate stack. Sorry if I was mistaken, it seemed like a possible solution at the time.


Flor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists% 40anderhome.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to