|
-
March 1st, 2010, 01:47 AM
#1
Assertions not showing, it makes difficult to work like this
Hi everybody!
I have recently installed Visual Studio 2008 and started programming a C++ application.
I have some assertions in my code, but none of them pops up the typical "error window" when the execution of the application fails.
The output prompts this:
The thread 'Win32 Thread' (0xcd4) has exited with code 3 (0x3).
The program '[2372] MyApp.exe: Native' has exited with code 3 (0x3).
When this happens I do not have the option to debug and breakpoint the source code. It just crashes and I don't know where it crashed.... 
I don't understand it, has someone experienced this before??
How can I fix it? I would like to see where the program crashes and see the pop up assertion window.
Can someone help me please?
PS: I have Windows XP SP3 and i'm using VS2008 express edition.
-
March 1st, 2010, 06:17 AM
#2
Re: Assertions not showing, it makes difficult to work like this
An ASSERT has to get hit before it'll stop the program. A crash and an ASSERT aren't the same thing.
I'd be putting breakpoints in various parts of the program and see how far you get. Try to narrow it down that way.
-
March 2nd, 2010, 06:17 AM
#3
Re: Assertions not showing, it makes difficult to work like this
Hi GCDEF,
The thing is that i am working with a group of people. We use the same code, with the same assertions, etc. And to my friends the assertions pop up windows are being shown, but when it comes to me the program just exits/crashes with code 3 (0x3).
I've also tried using breakpoints just before an assert and when i hit next step, the program crashes at the assert with the same code.
I don't know what to do
-
March 2nd, 2010, 08:02 AM
#4
Re: Assertions not showing, it makes difficult to work like this
You are doing a debug build right - not a release build with debug information?
-
March 2nd, 2010, 08:09 AM
#5
Re: Assertions not showing, it makes difficult to work like this
add another beak point some where else,why not add a break point in all of your functions/classes and as you are figuring out which ones remove the ones that are not causing the assertion and watch certain variables. or put TRACE( "code made it to nameofclass \n" );@ the top of each class in its member body and watch your debug window and last class accessed will appear near end of statements
Last edited by joe_stoll; March 2nd, 2010 at 08:13 AM.
Reason: 'class in its member body' was function
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
|