problem with threads
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi again, I just started programming with threads and I´m not sure how everything works yet... Problem: So far I have a 2-threaded Windows Forms Application. When I abort the program by clicking the x-button I cannot recompile the program without restarting my computer. I get an error message saying:
fatal error LNK1104:Cannot open file C:.....program.exe
I guess I have some process running that I didn´t terminate properly. Though, in the automatically generated "void Dispose" method I placed some code:myThread.suspend();
Isn´t this enough for terminating the thread, or is the problem perhaps somewhere else? doneirik