Hello i am Giorgos,
I have a problem with threads. Within my program1 i am doing some process and i would like in the meantime to show a window with "please waiting" message so the user to know that must wait.
So i am doing a call "cancel" and the program1 calls the program2 that has the waiting window but there it is stays with no respond. what i am doing wrong?
when GRAPH-Pressed| Search-Pressed| search-button-pushed
move zero to thread-return
set done to false
CALL thread "Cancel",
returning into thread-return
perform until done
if (thread-return = 99)
set done to true
stop thread cancel-thread
* set done to true
* stop thread cancel-thread
* perform until cancel-button-hit
* display Cancel-Screen1
close window Cancel-Screen1-Handle.
goback returning 99.
Try the accept in program2. Just for experiments try an accept that has a before time on it
accept cancel-screen before time 500
now see if you get a return back to program 1. If not, something else is going on and you'll need to post more code.
One other question .. is GRAPH-PRESSED-DO-IT the action of an event or the action of an exception procedure? If an event, you're still sitting on the original accpt .. if an exception procedure, then your accept has ended and the Program1 is waiting for what to do next .. display screen-2 or whatever.