Is your document template getting created successfully. I notice you don't
But how to find the NULL pointer call?
This is my InitInstance(), it hasn't changed for some time. I've
removed comments for the sake of brevity here.
m_bSocketsEnabled = TRUE;
m_bSocketsEnabled = FALSE;
if (IDNO == ::AfxMessageBox(IDP_OLE_INIT_FAILED,
MB_YESNO | MB_ICONQUESTION))
if (!_CheckCommandLine(__argc, __argv))
pDocTemplate = new CSingleDocTemplate(IDR_MAINFRAME,
m_bJustPoweredUp = FALSE; // Initialisation complete
Because of the CN_COMMAND_UPDATE_UI connection I tried removing all of
my status bar indicators and I get farther before I crash. I can now
getting through InitInstance() and it crashes calling pThread->Run() in
Thanks for your help.
In article <OdSmn39tGHA.1272@TK2MSFTNGP05.phx.gbl>, Tom Serface
Could you be calling ProcessShellCommand() before the mainframe is
This looks a lot like a NULL pointer call to a function. From your
line it looks like the OnCmdMsg() is in the frame window.
"Fenster" <firstname.lastname@example.org> wrote in message
I'm really stumped on this one. I don't know where to go at all. I'm
even that sure what information may be required by those willing to have
The call stack shows that I'm getting the exception somewhere in the
ProcessShellCommand() call in my application's InitInstance().
The exception occurs just after AfxGetApp() is called in OnCmdMsg(). The
CWinApp* appears to be valid (i.e. it's not NULL) so I assume that the
pApp->OnCmdMsg(nID, nCode, pExtra, pHandlerInfo) call is where it's all
nID is a valid indicator ID for a pane on my status bar. nCode is -1
which is CN_UPDATE_COMMAND_UI and therefore seems consistent with nID
being for the status bar. pExtra is not NULL but I'm not sure what it's
pointing at (or should be pointing at for that matter). pHandlerInfo is
NULL (not sure if this okay or not).
This is an application that has been running, in one form or another,
a number of years. The changes made since the last running version are
related to changing large static data arrays to "new"ing them at run
(on power-up) but I can't see any connection between this and what looks
to me like a messaging problem.
Any help would appreciated. Thanks.
If you feel it's necesary to e-mail me directly my address should be:
gordon at gordys dot demon dot co dot uk