_tmainCRTStartup crash. Need advise.

Apr 2, 2014 at 9:34am
Hi everyone,
My question relates to gamedev, but I'am really novice in this area. I'am providing support for a DirectX9/WinAPI game engine. And I faced the next problem:
when I launch game in full screen and press Atl+TAB to make window minimized and then trying to restore the window there is crash happening.
The stack is following:

1
2
3
4
5
6
7
8
9
> msvcr90.dll!75514682()
[Frames below may be incorrect and/or missing, no symbols loaded for msvcr90.dll]
msvcr90.dll!755146fc()
msvcr90.dll!7552c40c()
msvcr90.dll!7553028d()
InsaneCold.exe!__tmainCRTStartup() Line 574 + 0x1d bytes C
kernel32.dll!771f33aa()
ntdll.dll!77d19ef2()
ntdll.dll!77d19ec5() 


Error:
Unhandled exception at 0x75514682 in dump__call_stack0.dmp: 0xC0000005: Access violation writing location 0x258c0000.


So, as I see crash happens somewhere around __tmainCRTStartup().
Does anybody faced likewise problems?
Can anybody suggest me how to debug this issue deeper?

Thanks in advance for any suggestions.
Apr 2, 2014 at 11:54am
The crash isn't happing in __tmainCRTStartup(). It just so happens thats the only function for which the debugger can work out the name.

If you want a more useful stack trace, you need to run the debug build of your program. If and when it crashes, the stack trace will show function names and line number rather just hex addresses.

Having said that, it looks like it's crashing in a runtime library call. But the debug rtl will have symbols, you'll still see the function names.
Apr 2, 2014 at 12:03pm
Thanks! I'll try and come back!
Apr 6, 2014 at 11:02am
Yep! Thanks, suggestion helped!
Topic archived. No new replies allowed.