|
-
December 7th, 2011, 03:39 AM
#1
CDialog and Multithreading
I have 2 threads that need to access to a modeless dialog.
The modeless dialog is created with new operator.
I use criticalsections to synchronise access to the Cdialog between the 2 threads.
Inside the cdialog, I have a clistbox.
One of the thread call findstringexact on the listbox.
The problem is that someimes the call to findstringexact doesn't return at all, which of course blocks the other thread which is waiting to access to the cdialog.
What's the problem ? is it due to creating the dialog dynamically with new ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|