Results 1 to 9 of 9
  1. #1
    rowanabejjani is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default i have a problem

    Hi, i have a problem in my snake game, when i run the file it run, but when i run it from the main project it stop, so i make Debug and i found that it stop here:

    public void Start(){
    while(true){
    Jouer(5);
    try {
    Thread.sleep(vitesse);

    } catch (InterruptedException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    }
    }
    }
    can someone help me where the problem is??
    Last edited by rowanabejjani; 06-02-2011 at 06:48 PM.

  2. #2
    rowanabejjani is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default

    a friend told me that i have in my main project threat in another file so the system was confused due to the duplication of two similar thread....

  3. #3
    cultclassic is offline Member
    Join Date
    Mar 2011
    Posts
    64
    Rep Power
    0

    Default

    It's impossible to find the problem without the full code.
    Post a
    Short, Self Contained, Correct (Compilable) Example

  4. #4
    rowanabejjani is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default

    can you see it if i send you the full code???

  5. #5
    cultclassic is offline Member
    Join Date
    Mar 2011
    Posts
    64
    Rep Power
    0

    Default

    Quote Originally Posted by rowanabejjani View Post
    can you see it if i send you the full code???
    That would be against the spirit of the forum. Any help you get here, others might find useful.
    If you don't want to make the whole code public, strip out the unrelated parts,
    and post a compilable class that demonstrates the problem.

  6. #6
    rowanabejjani is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default

    the file is big i couldn't upload it can i send it to you

  7. #7
    rowanabejjani is offline Member
    Join Date
    Jun 2011
    Posts
    19
    Rep Power
    0

    Default

    ProjetFinal.zip - 4shared.com - online file sharing and storage - download
    This is the project, please i need help my presentation is tomorrow.... :(:(

  8. #8
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    5

    Cool

    Quote Originally Posted by rowanabejjani View Post
    ProjetFinal.zip - 4shared.com - online file sharing and storage - download
    This is the project, please i need help my presentation is tomorrow.... :(:(
    My office network doesn't allow me to download zip file. Even if it was allowed I wasn't gonna download it and look in it for you. And I am doubtful about how many other members are gonna do it, as this is not the way how it works here.

    Anyways, better luck for your presentation.

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

  9. #9
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    As suggested above, post an SSCE, creating one may just help you solve the problem yourself, and if it doesn't it will allow us to really see your problem. To be perfectly honest, I have no idea what your problem is, I don't know what's wrong because you haven't explained the problem well enough.

    People here(and mostly anywhere online) tend to(and should be) hesitant of following links. Even if we did, sifting through large amounts of code is way more work than many people will want to do. For example, what is Jouer(5)? Are we supposed to read your mind? The simpler you make this for us, the quicker you will get help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •