I’ve got a method which calls itself recursively. For a few thousand iterations it works fine but then it throws an java.lang.StackOverflowError ; it’s with Java 1.4.2_04-b05 and no special Java command switches on a Win2000 box.
How could I increase that stack size?
Also, when the error is being thrown, my try-catch(Throwable th) block won’t print an error stack, despite of my line th.printStackTrace(). For other errors this works. Looks like the stack’s so full that the error stack can’t be pushed on it…
However then I’ve to guess the code line where exactly the StackOverflowError occurs. Is there a way to always get a full printStackTrace() ?
