I have very little experience of threads, just what I've read in the help and read here. I don't have any conceptual problems with concurrent stuff, just never dabbled with it in Windows or PB.
The application runs a long running process which can be interrupted by setting a flag. In my first attempt, the thread which sets the flag puts up a MSGBOX, sets the flag and clears the msgbox when the MSGBOX button is clicked. This works, but if the button is NOT clicked, how to get rid of the MSGBOX? CLOSE THREAD doesn't do it.
Is there a way in which the new thread can get messages from a button in the dialog created by the main process, rather than starting a new (MSGBOX) window? This would look better.
The application runs a long running process which can be interrupted by setting a flag. In my first attempt, the thread which sets the flag puts up a MSGBOX, sets the flag and clears the msgbox when the MSGBOX button is clicked. This works, but if the button is NOT clicked, how to get rid of the MSGBOX? CLOSE THREAD doesn't do it.
Is there a way in which the new thread can get messages from a button in the dialog created by the main process, rather than starting a new (MSGBOX) window? This would look better.
Comment