Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm currently doing a game in Java, but there is a timeout that is a negative value. How do I know where it it? The error message is :
Java
<java.lang.IllegalArgumentException: timeout value is negative
at java.lang.Thread.sleep(Native Method)
at Main.GamePanel.run(GamePanel.java:73)
at java.lang.Thread.run(Thread.java:680)

-Naji Awad
Posted
Updated 11-Feb-14 4:28am
v2
Comments
joshrduncan2012 11-Feb-14 9:19am    
How are we supposed to answer that without showing us what you are talking about?
javaandcpp10 11-Feb-14 10:28am    
I updated the question ;)
phil.o 11-Feb-14 10:33am    
I think Josh meant we need to see your code.
Without it, we're just reduced at guessing; and guessing is not a reliable option in development.
javaandcpp10 11-Feb-14 10:38am    
I cant post the code since there are like 14 classes and 4 packages and 3 folders. It's too long
phil.o 11-Feb-14 10:45am    
So post just the code relevant to the problem.
The error message already gave you which files/lines.
And please, do not post it as comment, but rather by clicking on the 'Improve question' button.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900