Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29391 Discussions

Program termination after worker thread is done

fobermaier
Beginner
595 Views
Hello everyone,
I'm using a dialog based fortran windows application to inform about the progress of a longer lasting calculation.
Duringthe dlg_init event I'm creating a worker thread to do the computation so the main thread can update the Dialog.
My problem is that I don't know the best way to terminate the program once the calculation is done. This is nescessary, since the program should be used within a batchjob.
At the moment I'm using
call PostMessage(dlg%hwnd, WM_CLOSE, 0, 0)
or
call PostMessage(dlg%hwnd, WM_QUIT, 0, 0)
when the above function call does not work.
Thanks
Felix

Message Edited by fobermaier on 01-21-2005 05:05 PM

0 Kudos
0 Replies
Reply