   Multi-threading
  I'm trying to create a thread in Java. What am I doing wrong? I've been hacking at it for hours and this is as far as I could get. EDIT: I'm not getting errors or output but the program stops working.Nvm, it was because I was creating the thread at the beginning of the constructor instead at the end (Null Pointer Exceptions).[Edited by - Recruit0 on April 30, 2009 12:16:25 AM]
  You'd get help faster if you could first post a simplified subset of your code that exhibit the undesired behavior. Couldn't you at least specify where the exception occurs?   ;  I fixed the error but the program locks up/stops working. I don't know how this works so this is probably as much as I can cut out without leaving out information.   ;  You've left out all the information. To say what's wrong we must at least see the code.   