-
May 13th, 2011, 02:27 PM
#1
Workerthread inside Oninitdialog
I'd like to put a workerthread inside OnInidialog but I always get Debug Error when trying to execute the program. It compiles fine, only fails in debuggin and execution.
The error message is something like
Debug error - (title)
blah blah... an unusual error occurs, the program has to stop.
If I comment the workerthread out of the Oninitdialog, things become OK again
Thank you
Your smile's like a shining sun
-
May 13th, 2011, 03:12 PM
#2
Re: Workerthread inside Oninitdialog
Originally Posted by SunnySmile
I'd like to put a workerthread inside OnInidialog but I always get Debug Error when trying to execute the program. It compiles fine, only fails in debuggin and execution.
The error message is something like
Debug error - (title)
blah blah... an unusual error occurs, the program has to stop.
If I comment the workerthread out of the Oninitdialog, things become OK again
Thank you
So what is your question?
Obviously, there is something wrong either with you thread function or with the way you invoke it.
Did that “blah blah” message (dialog, most likely) have a Retry button? So that you could go and debug that error?
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
May 13th, 2011, 03:46 PM
#3
Re: Workerthread inside Oninitdialog
Unless you show us the code is impossible to tell. Run in Debugger and when you get the assertion press Retry to go the source of the assertion.
-
May 15th, 2011, 01:15 AM
#4
Re: Workerthread inside Oninitdialog
As cilu said you should post your code first else we cant get understood whats happening.
And check one thing, remove the thread calling function and check that the program still fails in OnInitDialog(). May be some other lines causing the error.
◄◄ hypheni ►►
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
|