Click here to Skip to main content
15,909,953 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
Chris Losinger wrote:
tWinMain calls AfxWinMain (in fact, that's all it does, in the MFC source that comes with VS08 ), and AfxWinMain eventually ends up calling your app's InitInstance.


This is another one of my points of confusion. In the crash.dmp file the beta tester sent me, the crash pops up inside the source file crt0c. The call looks similar to the one you quote, but not exactly. When I step into my app, I see what you quoted here. It's from appmodule.cpp. I tried to trace this through but it never got to this mysterious crt0.c call, which is slightly different. I also cannot figure out why the program would be calling _tWinMain TWICE in different modules.

Furthermore, if _tWinMain is called BEFORE my InitInstance function, then how could anything in my InitInstance function be the cause of the crash?

Chris Losinger wrote:
so, i doubt the problem is in tWinMain itself. the problem has to be farther down the line.


I don't understand. How can code farther down the line, that hasn't executed yet, be the cause of the crash? There are fundamental things I don't understand about how MFC/Windows work that hamper my ability know where to look.

Chris Losinger wrote:
if you can't reproduce the problem on your own machine, you can try something like a map file[^]. or, there's always good old log files[^].


Very interesting article about what to do with a map file, thanks. I've been creating a map file with exports, but had no idea what to do with it.
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 
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 
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 

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.