How do I know when a thread is ended?!?
I create a thread with beginthread function, and manage to ensure it is closing before closing the program:
readytoclose=TRUE;
endthread();
and everithing is ok, but if I press CTRL_ALT_CANC I see the program is still alive, and I know the objects haven't been closed...
How can I solve this problem...
I create a thread with beginthread function, and manage to ensure it is closing before closing the program:
readytoclose=TRUE;
endthread();
and everithing is ok, but if I press CTRL_ALT_CANC I see the program is still alive, and I know the objects haven't been closed...
How can I solve this problem...