Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSHIFT+F3 Pin
johnalek12-Mar-10 12:19
johnalek12-Mar-10 12:19 
AnswerRe: SHIFT+F3 Pin
Gwenio12-Mar-10 12:52
Gwenio12-Mar-10 12:52 
AnswerRe: SHIFT+F3 Pin
Rajesh R Subramanian12-Mar-10 18:38
professionalRajesh R Subramanian12-Mar-10 18:38 
GeneralRe: SHIFT+F3 Pin
Code-o-mat12-Mar-10 23:07
Code-o-mat12-Mar-10 23:07 
GeneralRe: SHIFT+F3 Pin
Rajesh R Subramanian13-Mar-10 3:32
professionalRajesh R Subramanian13-Mar-10 3:32 
GeneralRe: SHIFT+F3 Pin
Code-o-mat13-Mar-10 5:58
Code-o-mat13-Mar-10 5:58 
AnswerRe: SHIFT+F3 Pin
Code-o-mat13-Mar-10 5:59
Code-o-mat13-Mar-10 5:59 
Questioncrash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 8:33
permutations12-Mar-10 8:33 
I have a problem in my program that I don't know how to even begin to track down. Please help!

It's an MFC program compiled in Visual Studio 2008 for WinXP and above (WinVer=0x0501). It runs fine for everyone who has tested it except one person who is running WinXP SP3. He's tried it on two different computers running WinXP SP3 and it crashes on both. I'm pretty sure he's the only one with SP3. I have XP SP2 here and it runs fine.

It crashes at the Windows entry point - the call to _tWinMain in crt0.c (which I know through the crash.dmp file he sent me):

            mainret = _tWinMain( (HINSTANCE)&__ImageBase,<br />
                                 NULL,<br />
                                 lpszCommandLine,<br />
                                 StartupInfo.dwFlags & STARTF_USESHOWWINDOW<br />
                                      ? StartupInfo.wShowWindow<br />
                                      : SW_SHOWDEFAULT<br />
                                );<br />
<br />
<br />


The error message says: "Unhandled exception at 0x0041505e (myprog.exe) in CRASH.DMP: 0xC0000005: Access violation reading location 0x00000004."

I don't know how to even begin to track down a problem like this, especially when it appears to be platform-specific. Could someone give me some guidance on how to go about this?

Thanks!!!!
AnswerRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Bram van Kampen12-Mar-10 8:57
Bram van Kampen12-Mar-10 8:57 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 9:47
permutations12-Mar-10 9:47 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Bram van Kampen13-Mar-10 0:54
Bram van Kampen13-Mar-10 0:54 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations13-Mar-10 3:57
permutations13-Mar-10 3:57 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Bram van Kampen13-Mar-10 9:19
Bram van Kampen13-Mar-10 9:19 
AnswerRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Chris Losinger12-Mar-10 9:01
professionalChris Losinger12-Mar-10 9:01 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 9:41
permutations12-Mar-10 9:41 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Chris Losinger12-Mar-10 9:59
professionalChris Losinger12-Mar-10 9:59 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 10:13
permutations12-Mar-10 10:13 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Chris Losinger12-Mar-10 10:43
professionalChris Losinger12-Mar-10 10:43 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 12:13
permutations12-Mar-10 12:13 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Avi Berger12-Mar-10 11:15
Avi Berger12-Mar-10 11:15 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 12:00
permutations12-Mar-10 12:00 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Avi Berger12-Mar-10 13:30
Avi Berger12-Mar-10 13:30 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! [modified] Pin
permutations12-Mar-10 15:06
permutations12-Mar-10 15:06 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 16:15
permutations12-Mar-10 16:15 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 11:04
permutations12-Mar-10 11:04 

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.