Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stack over flow error....  RSS feed

 
alun groome
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, im getting a stackoverflow error on the below scenario. Can anybody help?
Thanks in advance


 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to do and can you give us the extact stacktrace?
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your main method creates an instance of MainApplication which creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. (and so on)
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Joe Ess:
Your main method creates an instance of MainApplication which creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. PanelA's constructor creates an instance of PanelB. PanelB's constructor creates an instance of PanelA. (and so on)


It's a recurrsive nightmare!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!