Click here to Skip to main content
15,887,350 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 5:44
mveRichard MacCutchan26-Jun-11 5:44 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:46
VeganFanatic26-Jun-11 5:46 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 5:57
mveRichard MacCutchan26-Jun-11 5:57 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 5:58
VeganFanatic26-Jun-11 5:58 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
Richard MacCutchan26-Jun-11 6:06
mveRichard MacCutchan26-Jun-11 6:06 
GeneralRe: backgroud worker thread crashes but fine when foreground Pin
VeganFanatic26-Jun-11 6:08
VeganFanatic26-Jun-11 6:08 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Albert Holguin5-Jul-11 9:52
professionalAlbert Holguin5-Jul-11 9:52 
AnswerRe: backgroud worker thread crashes but fine when foreground Pin
Paul M Watt10-Jul-11 16:24
mentorPaul M Watt10-Jul-11 16:24 
When you have this run on one thread, does it complete properly?

I would do 3 things to trouble shoot and improve the code:

1) Add another command to your console entry, that allows you to start the "showtime" function, and run it one the same thread. Verify that it functions properly.

2) Enable Exceptions. I assume you are using Visual Studio of some sort, if not you will have to figure out how to do this for your debugger. In Visual Studio you can do this at the Debug | Exceptions Menu. Enable: C++ Exceptions, Native Run-Time Checks and Win32 Exceptions.

When you run your application in the debugger and it crashes, you will be right at the point in code the exception is thrown. Then you can look at the stack and all of the other helpful information.

3) Break up all of the work done in "showtime" into a smaller pieces. Probably a common function that prints out the basic text and runs the test you initiate. Then in "showtime" you would make multiple calls to your smaller function. This will help make your code more manageable.

From looking at your code, my guess is that one of the test routines is returning a NULL or some value that the string functions dont like, or is failing internally.
QuestionMigration from MFC to STL Pin
hrishi32122-Jun-11 20:28
hrishi32122-Jun-11 20:28 
AnswerRe: Migration from MFC to STL Pin
Alain Rist22-Jun-11 22:44
Alain Rist22-Jun-11 22:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:28
hrishi32126-Jun-11 18:28 
GeneralRe: Migration from MFC to STL Pin
Alain Rist26-Jun-11 21:18
Alain Rist26-Jun-11 21:18 
AnswerRe: Migration from MFC to STL Pin
Albert Holguin23-Jun-11 8:44
professionalAlbert Holguin23-Jun-11 8:44 
GeneralRe: Migration from MFC to STL Pin
hrishi32126-Jun-11 18:30
hrishi32126-Jun-11 18:30 
AnswerRe: Migration from MFC to STL Pin
Bram van Kampen19-Aug-11 15:00
Bram van Kampen19-Aug-11 15:00 
QuestionQuestion about inserting into dbf file Pin
monsieur_jj21-Jun-11 16:08
monsieur_jj21-Jun-11 16:08 
QuestionToolTip text in WTL Pin
SelvaKr20-Jun-11 21:03
SelvaKr20-Jun-11 21:03 
AnswerRe: ToolTip text in WTL Pin
Cool_Dev21-Jun-11 0:31
Cool_Dev21-Jun-11 0:31 
AnswerRe: ToolTip text in WTL Pin
Alain Rist21-Jun-11 4:29
Alain Rist21-Jun-11 4:29 
QuestionCompiler Warning C4407: How bad is it? Pin
Kyudos19-Jun-11 18:03
Kyudos19-Jun-11 18:03 
AnswerRe: Compiler Warning C4407: How bad is it? Pin
Richard MacCutchan19-Jun-11 22:20
mveRichard MacCutchan19-Jun-11 22:20 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 0:40
Kyudos20-Jun-11 0:40 
AnswerRe: Compiler Warning C4407: How bad is it? Pin
Albert Holguin20-Jun-11 13:44
professionalAlbert Holguin20-Jun-11 13:44 
GeneralRe: Compiler Warning C4407: How bad is it? Pin
Kyudos20-Jun-11 13:58
Kyudos20-Jun-11 13:58 
AnswerRe: Compiler Warning C4407: How bad is it? [modified] Pin
Albert Holguin20-Jun-11 17:10
professionalAlbert Holguin20-Jun-11 17:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.