Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to make spreadsheet Pin
marwa_fci29-Sep-06 10:46
marwa_fci29-Sep-06 10:46 
AnswerRe: how to make spreadsheet Pin
Waldermort29-Sep-06 10:59
Waldermort29-Sep-06 10:59 
AnswerRe: how to make spreadsheet Pin
Maximilien29-Sep-06 11:09
Maximilien29-Sep-06 11:09 
AnswerRe: how to make spreadsheet Pin
Hamid_RT29-Sep-06 19:59
Hamid_RT29-Sep-06 19:59 
AnswerRe: how to make spreadsheet Pin
marwa_fci30-Sep-06 10:26
marwa_fci30-Sep-06 10:26 
GeneralRe: how to make spreadsheet Pin
S Douglas30-Sep-06 20:54
professionalS Douglas30-Sep-06 20:54 
GeneralRe: how to make spreadsheet Pin
Hamid_RT2-Oct-06 8:57
Hamid_RT2-Oct-06 8:57 
QuestionDebugging pains Pin
PJ Arends29-Sep-06 10:17
professionalPJ Arends29-Sep-06 10:17 
This is really starting to bug me.

I have created a VC8 MFC app that I am now trying to get to run on a W2K SP4 machine. This app runs with no problems on my XP SP2 machine that has VS2005 installed on it.

I have turned off all optimizations, added all the debug info, and generated .map and .pdb files for the app.

I use DrWatson (drwtsn32.exe v5.0.2195.6699) to generate a .log and .dmp file on the W2K machine when the crash occurs. I transfered those two files back to my dev machine.

I have narrowed the error down to this:
CMyApp::InitInstance()
{
    <snip>

    CMainFrame *pMainFrame = new CMainFrame;
    if (!pMainFrame)
    {
        AfxMessageBox(_T("Mainframe c'tor failed"));
        return FALSE;
    }

    if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
    {
        AfxMessageBox(_T("LoadFrame failed"));
        delete pMainFrame;                      // <=== Crashes here
        return FALSE;
    }

I have absolutely no idea why the LoadFrame call fails, nor why deleting the pMainFrame pointer causes the app to crash. When I try to open the dump file in VS2005 I get an error "Debugging older format crashdumps is not supported."

Here is part of the DrWatson log file in case anybody sees something I may be missing:
State Dump for Thread Id 0x3b8

eax=00778f00 ebx=ffffffff ecx=00778f00 edx=00000000 esi=00433a68 edi=00433a68
eip=00423f8e esp=0012fe70 ebp=0012ff1c iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000206


function: <nosymbols>
        00423f72 8b4df0           mov     ecx,[ebp+0xf0]         ss:00ba9e02=????????
        00423f75 894d88           mov     [ebp+0x88],ecx         ss:00ba9e02=????????
        00423f78 8b5588           mov     edx,[ebp+0x88]         ss:00ba9e02=????????
        00423f7b 89558c           mov     [ebp+0x8c],edx         ss:00ba9e02=????????
        00423f7e 837d8c00         cmp   dword ptr [ebp+0x8c],0x0 ss:00ba9e02=????????
        00423f82 7417             jz      0042a99b
        00423f84 6a01             push    0x1
        00423f86 8b458c           mov     eax,[ebp+0x8c]         ss:00ba9e02=????????
        00423f89 8b10             mov     edx,[eax]              ds:00778f00=00000000
        00423f8b 8b4d8c           mov     ecx,[ebp+0x8c]         ss:00ba9e02=????????
FAULT ->00423f8e 8b4204           mov     eax,[edx+0x4]          ds:00a79ee6=????????
        00423f91 ffd0             call    eax
        00423f93 898560ffffff     mov     [ebp+0xffffff60],eax   ss:0012fe7c=00000040
        00423f99 eb0a             jmp     004306a5
        00423f9b c78560ffffff00000000                            ss:0012fe7c=00000040
                                  mov     dword ptr [ebp+0xffffff60],0x0
        00423fa5 6a00             push    0x0
        00423fa7 6a00             push    0x0
        00423fa9 686caa4200       push    0x42aa6c
        00423fae e84fcefeff       call    00410e02
        00423fb3 c7458400000000   mov   dword ptr [ebp+0x84],0x0 ss:00ba9e02=????????
        00423fba c745fcffffffff                                  ss:00ba9e02=????????
                                  mov     dword ptr [ebp+0xfc],0xffffffff
        00423fc1 8d4dbc           lea     ecx,[ebp+0xbc]         ss:00ba9e02=????????

*----> Stack Back Trace <----*

FramePtr ReturnAd Param#1  Param#2  Param#3  Param#4  Function Name
0012FF1C 7831C3A7 00433BB4 00000001 00000000 00411561 !<nosymbols> 
0012FFC0 7C4E87F5 006D0049 00670061 7FFDF000 C0000005 !<nosymbols> 
0012FFF0 00000000 004116D1 00000000 000000C8 00000100 kernel32!DosDateTimeToFileTime 

*----> Raw Stack Dump <----*
0012fe70  01 00 00 00 f5 ca 3c 8c - c8 fe 12 00 40 00 00 00  ......<.....@...
0012fe80  00 8f 77 00 80 8d 77 00 - 68 3a 43 00 76 00 00 00  ..w...w.h:C.v...
0012fe90  b0 ff 12 00 8e 13 2e 7c - a0 20 2d 7c ff ff ff ff  .......|. -|....
0012fea0  d4 fe 12 00 00 8f 77 00 - 00 8f 77 00 c8 fe 12 00  ......w...w.....
0012feb0  00 8f 77 00 00 8f 77 00 - 08 ff 12 00 80 8d 77 00  ..w...w.......w.
0012fec0  80 8d 77 00 5c 6e 3c 78 - 76 00 78 00 e8 21 2f 78  ..w.\n<xv.x..!>
0012fed0  00 00 00 00 0c ff 12 00 - 18 27 2f 78 01 00 00 00  .........'/x....
0012fee0  00 00 00 00 00 00 00 00 - 00 00 00 00 e0 5c 3c 78  .............\<x>
0012fef0  e0 5c 3c 78 e0 5c 3c 78 - e0 5c 3c 78 00 00 00 00  .\<x.\><x.\><x....>
0012ff00  08 00 00 00 ff 00 00 00 - 80 8d 77 00 00 8f 77 00  ..........w...w.
0012ff10  b0 ff 12 00 a9 80 42 00 - 00 00 00 00 c0 ff 12 00  ......B.........
0012ff20  a7 c3 31 78 b4 3b 43 00 - 01 00 00 00 00 00 00 00  ..1x.;C.........
0012ff30  61 15 41 00 00 00 40 00 - 00 00 00 00 64 08 02 00  a.A...@.....d...
0012ff40  01 00 00 00 29 ca 3c 8c - 49 00 6d 00 61 00 67 00  ....).<.I.m.a.g.
0012ff50  00 f0 fd 7f 44 00 00 00 - 00 09 02 00 e0 08 02 00  ....D...........
0012ff60  68 08 02 00 00 00 00 00 - 00 00 00 00 00 00 00 00  h...............
0012ff70  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................
0012ff80  01 04 00 00 01 00 00 00 - 00 00 00 00 00 00 00 00  ................
0012ff90  01 00 01 00 00 00 00 00 - 05 00 00 c0 64 08 02 00  ............d...
0012ffa0  00 00 00 00 00 00 00 00 - 44 ff 12 00 a4 fa 12 00  ........D.......

*----> Symbol Table <----*
</x....></x.\></x.\></x></xv.x..!></nosymbols></nosymbols></nosymbols>




You may be right
I may be crazy
-- Billy Joel --


Within you lies the power for good - Use it!

AnswerRe: Debugging pains Pin
Peter Weyzen29-Sep-06 14:04
Peter Weyzen29-Sep-06 14:04 
GeneralRe: Debugging pains Pin
PJ Arends29-Sep-06 16:10
professionalPJ Arends29-Sep-06 16:10 
GeneralRe: Debugging pains Pin
Mike_V29-Sep-06 17:57
Mike_V29-Sep-06 17:57 
GeneralRe: Debugging pains Pin
PJ Arends29-Sep-06 21:40
professionalPJ Arends29-Sep-06 21:40 
GeneralRe: Debugging pains Pin
Mike_V29-Sep-06 22:19
Mike_V29-Sep-06 22:19 
GeneralRe: Debugging pains Pin
PJ Arends30-Sep-06 12:09
professionalPJ Arends30-Sep-06 12:09 
GeneralRe: Debugging pains Pin
S Douglas30-Sep-06 21:08
professionalS Douglas30-Sep-06 21:08 
GeneralRe: Debugging pains Pin
PJ Arends29-Sep-06 16:16
professionalPJ Arends29-Sep-06 16:16 
QuestionWizard question OnWizardFinished Pin
Maximilien29-Sep-06 9:23
Maximilien29-Sep-06 9:23 
QuestionRe: Wizard question OnWizardFinished Pin
David Crow29-Sep-06 10:03
David Crow29-Sep-06 10:03 
QuestionDateTime Picker can select different field Pin
bflynt29-Sep-06 8:58
bflynt29-Sep-06 8:58 
Questionhow to get column count of CListCtrl? Pin
includeh1029-Sep-06 6:37
includeh1029-Sep-06 6:37 
AnswerRe: how to get column count of CListCtrl? Pin
Hamid_RT29-Sep-06 6:55
Hamid_RT29-Sep-06 6:55 
GeneralRe: how to get column count of CListCtrl? Pin
Zac Howland29-Sep-06 8:58
Zac Howland29-Sep-06 8:58 
GeneralRe: how to get column count of CListCtrl? Pin
Hamid_RT29-Sep-06 9:06
Hamid_RT29-Sep-06 9:06 
Questionsetup Pin
amaneet29-Sep-06 5:55
amaneet29-Sep-06 5:55 
AnswerRe: setup Pin
Waldermort29-Sep-06 5:58
Waldermort29-Sep-06 5:58 

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.