• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.StackOverFlowError

 
Olivier López
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi

I have a java program, and just when i started it appears this:



The line >(Interfaz.java:31) is: asignaImagenes img = new asignaImagenes();

asignaImagenes is a Thread...

and >(hiloPrincipal.java:32) is: Interfaz in = new Interfaz();

Interfaz is the Gui of the program...

Bue why the error java.lang.StackOverFlowError is showing? at least is should open the GUI, and then show the error, but not...

I attach the program in a .rar is someone want to give it a look n_n

http://cid-52b3921aa4c9f9cb.skydrive.live.com/embedicon.aspx/P%c3%bablico/t03-olopezc924%20^5caballo%20ajedrez^6.zip

Thanks in advance
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something is calling itself repeatedly. That will cause stack overflow. You are going back and forth between lines Interfaz.31 and hiloPrincipal32.
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!