This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with Java Run  RSS feed

 
andrea armani
Greenhorn
Posts: 8
Java Mac Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I made a check4 application with Java.
It correctly works but sometimes the application just stop itself during the execution.
I never had a problem like this.
How can I fix it??

The application just stop itself and i can't even quit using the closing button..
It's a little frustrating..
 
Campbell Ritchie
Marshal
Posts: 55694
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We cannot help without knowing all the details.
 
andrea armani
Greenhorn
Posts: 8
Java Mac Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I play human vs human mode it always works correctly, if I play human vs pc sometimes it just stops itself and I can't even quit the application.

This is the ActionPerformed on a button of my table



This is the AI.ArtInt



The insert method works correctly..
 
Campbell Ritchie
Marshal
Posts: 55694
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what have you done to investigate the errors? Have you got any debugging code? How are you investigating program state? Where do you have any loops? Could any of them go into an infinite loop? How many threads are you using? How do you know insert works correctly?
 
andrea armani
Greenhorn
Posts: 8
Java Mac Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The code was perfect, but I used giant images, so it was very slow..
Anyway, thank you.
 
Campbell Ritchie
Marshal
Posts: 55694
163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done sorting it out
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!