Click here to Skip to main content
15,902,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
permutations wrote:
The crash is in the _tWinMain() procedure, and I don't know at what point that is called. Isn't it called before InitInstance() even executes?


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.

extern "C" int WINAPI
_tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
	_In_ LPTSTR lpCmdLine, int nCmdShow)
#pragma warning(suppress: 4985)
{
	// call shared/exported WinMain
	return AfxWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
}


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

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[^].
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 
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 

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.