Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
The more I look at this the more confused and frustrated I become.

This is the view from the disassembly window when running the app in VS2005 on my XP machine:
	{
        AfxMessageBox(_T("LoadFrame failed"));
00423F04  push        0    
00423F06  push        0    
00423F08  push        42A950h 
00423F0D  call        AfxMessageBox (410E02h) 
		delete pMainFrame;
00423F12  mov         ecx,dword ptr [ebp-10h] 
00423F15  mov         dword ptr [ebp-78h],ecx 
00423F18  mov         edx,dword ptr [ebp-78h] 
00423F1B  mov         dword ptr [ebp-74h],edx 
00423F1E  cmp         dword ptr [ebp-74h],0 
00423F22  je          CMyApp::InitInstance+2CBh (423F3Bh) 
00423F24  push        1    
00423F26  mov         eax,dword ptr [ebp-74h] 
00423F29  mov         edx,dword ptr [eax] 
00423F2B  mov         ecx,dword ptr [ebp-74h] 
00423F2E  mov         eax,dword ptr [edx+4] 
00423F31  call        eax  
00423F33  mov         dword ptr [ebp-0A0h],eax 
00423F39  jmp         CMyApp::InitInstance+2D5h (423F45h) 
00423F3B  mov         dword ptr [ebp-0A0h],0 
		return FALSE;
00423F45  mov         dword ptr [ebp-7Ch],0 
00423F4C  mov         dword ptr [ebp-4],0FFFFFFFFh 
00423F53  lea         ecx,[ebp-44h] 
00423F56  call        CCommandLineInfo::~CCommandLineInfo (410DD8h) 
00423F5B  mov         eax,dword ptr [ebp-7Ch] 
00423F5E  jmp         0042409A 
	}
	m_pMainWnd = pMainFrame;
00423F63  mov         ecx,dword ptr [ebp-94h] 
00423F69  mov         edx,dword ptr [ebp-10h] 
00423F6C  mov         dword ptr [ecx+20h],edx 
And this is the DrWatson log from the same exe file but run on W2K
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 <----*
Now I do not know why the addresses are different (off by 0x60 bytes)
Why the instruction just before the push 1 is different - VS debugger has it as jz, DrWatson has it as je
Why the pointers are different? mov ecx,dword ptr [ebp-10h] as opposed to mov ecx,[ebp+0xf0]

Is the copy of DrWatson on the W2K machine all screwed up?

If I look for the instruction addresses reported by DrWatson in VS I can not find them.

I assumed that the app was crashing in delete because it crashed immediately after I got the message box and DrWatson reported the fault to be in the code that matches up (almost) with the code the VS shows for the delete function.



Why would the app run flawlessly on XP but crash so badly on W2K? I think what I really need is some clear instructions on how to setup VS2005 to do remote debugging. Anything I have tried from reading MSDN on the subject has failed with VS giving me cryptic error messages.



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 
AnswerRe: setup Pin
Zac Howland29-Sep-06 6:01
Zac Howland29-Sep-06 6:01 
AnswerRe: setup Pin
Hamid_RT29-Sep-06 6:57
Hamid_RT29-Sep-06 6:57 

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.