Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29280 Discussions

Program termination after worker thread is done

fobermaier
Beginner
412 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