Hey, this time I'm back with a threading error!
I need to write code that gets the address of a message sender while at the same time letting the user know that the pygame didn't freeze, so I started a thread to keep control of the screen while searching for a connection.
Anyway, while testing my threads in a test file, I kept getting this C++ Runtime or a "This Program encountered an error and needed to close." error whenever I called Thread.start().
I'm not sure why I'm getting this error, and would appreciate some help figuring this out!
Here's the code in case it's needed
from threading import Thread Var = 1 class T(Thread): def run(self): global Var print "This is thread " + str(Var) + "speaking." print "Hello and Goodbye!" Var += 1 for x in range(20): T().start()