Dear Experts:
Yesterday experts advised using "while not terminated do begin..." in thread execute function to check thread terminated property and exit the thread gracefully from within. We just tested code, but it still can not terminate thread. But this thread can be terminated practically and immediately by calling TerminateThread function externally. There is something defective in execute function or in that large while loop within execute function? Or are there special requirements when using while not terminated loop?
By the way, what are difference between endthread, exitthread,and terminatethread? how to use them? which is comparatively better?
Thank you so much again for your help.