I got a window where I'm asking for some info (call InfoWindow).

I do a very long process with this data, so I trigger a window with a progress bar and a cancel button within it (call ProgressWindow).

To do the process I use 4 threads, and when the process ends, ProgressWindow and InfoWindow must close.

So:

- InfoWindow calls ProgressWindow passing InfoWindow by reference
- ProgressWindow calls ThreadA passing ProgressWindow  by reference
- ThreadA calls ThreadB passing ProgressWindow  by reference
- ThreadB calls ThreadC passing ProgressWindow  by reference
- ThreadC calls ThreadD passing ProgressWindow  by reference
- ThreadD must close ProgressWindow and InfoWindow

In the last step:

a) if I close ProgressWindow I lose the reference to InfoWindow... I can't close... my app crashes (and the debug doesn't handle it)
b) if InfoWindow... my app crashes (and the debug doesn't handle it)

I did some tricky ways to do it but InfoWindow never closes...

So, What is the best way to close a window using threads???

Thanks!!!

Alexander










_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to