Click here to Skip to main content
15,904,346 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
permutations wrote:
the crash pops up inside the source file crt0c


I believe that this is the start up code. This is where your app really gets started up by windows. It calls tWinMain, and, yes, it is before AfxWinMain and InitInstance. You are starting debugging at a point after this code has called your/mfc's code. You never see it get there because the programs already left that code before you start looking. Try setting a breakpoint in that code before starting your debug run.

While the start up code is before tWinMain, AfxWinMain, and InitInstance, it does call the constructors for any global classes that have to be instantiated. It probably initializes dlls as well. I'd suggest you go back to Chris Losinger's post which I believe was right on target:

Chris Losinger wrote:
couple of things to look for:

1. initialization of global variables (especially classes which do non-trivial things in their ctors).

2. are you loading any DLLs? are they doing anything non-trivial in their DllMain's (edited by Avi) ?


Also, if you are dynamically linking with the MFC or C runtime libray dll's, have you triple checked dll versions on the client machine. Some versions of these have multiple revisions with identical names out in the wild. I have worked on a project that had problems that appear to have been due to this.
Please do not read this signature.

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 
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 

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.