I need some help on my below scenario:
I have created a dialog based application in Visual Studio 2010 in MFC C++. My Main Dialog is Modal and I have a Menu that displays on Right Click on my Dialog.
In one of the Menu, I do some processing and display another Dialog which is modeless. During this processing, User should be able to:
1. Click on any other menu of Main Dialog.
2. If Close is hit on the Main Dialog, it should wait until this processing is completed and Close All once processing is completed.
3. Should be able to repeat same process n number of times (for eg. The 2nd Modeless dialog can be opened in more than 1 instance with different result as per processing and option chosen).
For this, I have tried to use Multithread where each of my 2nd Modeless dialog can be hooked up in a different thread & Main Dialog can also be kept alive with all its Menu accessible during this processing.
Problem: I am not able to determine if the thread exited correctly, destructor of my 2nd modeless dialog is not getting a breakpoint hit. The application closes with exitcode as 2 are my observations..
I want to learn more about MultiThreading and will this be the best solution or any other references are suggested?
Thank you in advance..
Urgency deleted - OriginalGriff[/edit]