This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Welcome again. I have sorted out the code tag problem, but again could not reproduce your error. I also got rid of some of the excess blank lines, which do not add to legibility, but I do not think I have altered the code materially.
The only way I think you can get such an error is by recursively calling the constructor in the same class, like Foo here:-You are creating so many objects that you are running out of space for all the constructor calls. I cannot see any code which would produce that error with what you posted. Please check.
Don't use HTML br tags in your posted code; only use spaces for formatting.