![]() |
|
[.NET] Account creator doesnt work - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] Account creator doesnt work (/showthread.php?tid=5668561) |
Account creator doesnt work - Kαѕρer - Jul 13, 2017 I tried to make an account generator with some help of tutorials on YouTube, but I cant get it to work. I get this error: "System.Threading.ThreadStateException: "The thread has not been deferred by the user and can not be resumed." Can someone help me out? If so, hmu with a PM. * - Rhez - Jul 13, 2017 Did you use Thread.Abort? If so, check this: https://stackoverflow.com/questions/1054889/restarting-a-thread-in-net-using-c * - Kαѕρer - Jul 13, 2017 (Jul 13, 2017 05:56 AM)Rhez Wrote: Did you use Thread.Abort? If so, check this: https://stackoverflow.com/questions/1054889/restarting-a-thread-in-net-using-c This is where the error is, says Visual Studio. * - Pongik - Jul 13, 2017 I think there's a logic error in your code. Why did you leave the thread resume out of the original code? What is its purpose there? Basically if the thread didn't start (I assume that's what the 'Started' boolean is) then it starts it and sets the boolean to true. Now, after that, it will jump to thread resume but the thread already started, so unless something went wrong it will throw an exception. So just remove it, I say. You should also try to add a 'Try' to your code. * - Rhez - Jul 14, 2017 (Jul 13, 2017 05:59 AM)Kαѕρer Wrote: Incomplete code. Why there's a Resume there? |