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
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: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...
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.
Bookmarks