Click here to Skip to main content
15,914,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
Chris Losinger12-Mar-10 11:14
professionalChris Losinger12-Mar-10 11:14 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 9:42
permutations12-Mar-10 9:42 
AnswerRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 11:52
permutations12-Mar-10 11:52 
Okay, my level of mystification is ever so slightly reduced thanks to a very excellent article here:

MFC under the hood[^]

I still don't know why the crash dump points at crt01.c, but apparently _tWinMain is actually called by AfxWinMain, and... (drum roll)... this function is calling my app's InitInstance() method, which is where the read access error is occurring.

I can't use the map file to tell exactly what line is causing the fault because Microsoft bizarrely removed the MAPINFO:LINES option from the linker starting with Visual Studio 2005. (I'm running Visual Studio 2008.) I can estimate the range of lines in which it's occurring by looking at function addresses in the map file. It's somewhere between the start of the InitInstance() method and my first call to StringCchCopy() - if I'm reading the map file correctly.

It's starting to look like I'll never find this unless I install XP3 and a compiler somewhere, and recreate the error so I can use the debugger to find it. Maybe I'll install it on my tablet - the one that makes a horrible grinding noise. (This appears to be the fan and not the hard drive, since replacing the hard drive didn't help.)

Actually, come to think of it, I have an extra hard drive for that computer because of the grinding noise. I can install XP SP3 clean there, install VC++ 6 (which blessedly can show line numbers in the map file) and find the error that way. It's kind of a pain, but I don't see what other choice I have.

Oh wait! Better yet. I have an extra hard drive for an notebook that is running properly. I bought a bigger one. I can use the smaller one to install the test system. I will do that.
AnswerRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations12-Mar-10 18:27
permutations12-Mar-10 18:27 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations14-Mar-10 6:45
permutations14-Mar-10 6:45 
GeneralRe: crash in _tWinMain, crt0.c, XP SP3 only - HELP!! Pin
permutations14-Mar-10 9:35
permutations14-Mar-10 9:35 
QuestionThread and its custom window (!?) Pin
Russell'12-Mar-10 8:24
Russell'12-Mar-10 8:24 
AnswerRe: Thread and its custom window (!?) Pin
Eugen Podsypalnikov12-Mar-10 10:16
Eugen Podsypalnikov12-Mar-10 10:16 
AnswerRe: Thread and its custom window (!?) Pin
Code-o-mat12-Mar-10 10:21
Code-o-mat12-Mar-10 10:21 
QuestionOne good CListCtrlEx ? Where ? Pin
mesajflaviu12-Mar-10 7:16
mesajflaviu12-Mar-10 7:16 
QuestionRe: One good CListCtrlEx ? Where ? Pin
David Crow12-Mar-10 9:23
David Crow12-Mar-10 9:23 
AnswerRe: One good CListCtrlEx ? Where ? Pin
mesajflaviu13-Mar-10 7:40
mesajflaviu13-Mar-10 7:40 
QuestionRe: One good CListCtrlEx ? Where ? Pin
David Crow13-Mar-10 16:01
David Crow13-Mar-10 16:01 
AnswerRe: One good CListCtrlEx ? Where ? Pin
mesajflaviu14-Mar-10 8:10
mesajflaviu14-Mar-10 8:10 
AnswerRe: One good CListCtrlEx ? Where ? [modified] Pin
Rolf Kristensen14-Mar-10 14:33
Rolf Kristensen14-Mar-10 14:33 
GeneralRe: One good CListCtrlEx ? Where ? Pin
mesajflaviu15-Mar-10 9:00
mesajflaviu15-Mar-10 9:00 
GeneralRe: One good CListCtrlEx ? Where ? Pin
Rolf Kristensen15-Mar-10 21:08
Rolf Kristensen15-Mar-10 21:08 
QuestionC++ console application problem on Windows 7 Pin
corrosion19012-Mar-10 6:55
corrosion19012-Mar-10 6:55 
AnswerRe: C++ console application problem on Windows 7 Pin
LunaticFringe12-Mar-10 7:33
LunaticFringe12-Mar-10 7:33 
GeneralRe: C++ console application problem on Windows 7 Pin
corrosion19012-Mar-10 8:22
corrosion19012-Mar-10 8:22 

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.