As I said, it's just a shot in the dark, but we had a project here that had UI in a worker thread (not MFC even), and we needed to add a feature to it, but started getting puzzling behavior (it wasn't my project, so I can't remember the exact problem.) We ended up throwing away the project, creating a fresh project using the IDE Wizard, including the timer trick, and pasting all the old code to the new project. It worked the first time.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Palmer, Jean L. > Sent: Wednesday, October 06, 2004 1:10 PM > To: [EMAIL PROTECTED] > Subject: RE: [msvc] CFileDialog > > > > My dialog in the auxiliary thread shows a progress bar. That > progress bar is updated (stepped) when it receives a certain > registered thread message from the main thread. There isn't > any sharing of MFC objects across the threads. I thought > this was ok to do. The only other UI action the aux thread > does is that it has a button which can be pressed, to cause > it to hide itself. It doesn't ever perform any actions (UI > or otherwise) on the main thread. > -Jean > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of prosen > > Sent: Wednesday, October 06, 2004 11:32 AM > > To: [EMAIL PROTECTED] > > Subject: RE: [msvc] CFileDialog > > > > > > > This is happening on WinNT. > > > The modal dialog is showing up below Visual Studio windows, > > > and below the modeless dialog window for a different thread. > > > > Different thread? I'm just shooting in the dark here, but are > > you doing UI > > in more than one thread? I don't think that is recommended, > > but I don't know > > all the ramifications. What we do is have the other threads > > just update > > internal data, and have the dialog that "appears" to be in > > the other thread > > actually run in the main thread and have a timer that updates itself > > regularly. The timer doesn't have to run very often, just 5 > > times a second > > or so to appear responsive. > > > > > > > > _______________________________________________ > > msvc mailing list > > [EMAIL PROTECTED] > > See > > http://beginthread.com/mailman/listinfo/msvc_beginthread.com > > for subscription changes, and list archive. > > > > _______________________________________________ > msvc mailing list > [EMAIL PROTECTED] > See > http://beginthread.com/mailman/listinfo/msvc_beginthread.com > for subscription changes, and list archive. > _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
