Click here to Skip to main content
15,915,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: stepping over api calls causes exceptions Pin
dazinith4-Jun-02 5:47
dazinith4-Jun-02 5:47 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 6:00
moredip4-Jun-02 6:00 
GeneralRe: stepping over api calls causes exceptions Pin
dazinith4-Jun-02 6:07
dazinith4-Jun-02 6:07 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 6:22
moredip4-Jun-02 6:22 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 6:25
Rama Krishna Vavilala4-Jun-02 6:25 
GeneralRe: stepping over api calls causes exceptions Pin
Rage4-Jun-02 6:47
professionalRage4-Jun-02 6:47 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 7:13
moredip4-Jun-02 7:13 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 7:17
moredip4-Jun-02 7:17 
here's the function that fails:

BOOL DProjectLoader::OnInitDialog() 
{
	CDialog::OnInitDialog(); //dies here
...
...


here's the call stack:

KERNEL32! 77e83a14()
CThreadSlotData::GetThreadValue(int 1) line 259 + 12 bytes
CThreadLocalObject::GetData(CNoTrackObject * (void)* 0x00564410 CThreadLocal<_AFX_THREAD_STATE>::CreateObject(void)) line 400 + 17 bytes
CThreadLocal<_AFX_THREAD_STATE>::GetData() line 173 + 13 bytes
CThreadLocal<_AFX_THREAD_STATE>::operator _AFX_THREAD_STATE *() line 183 + 15 bytes
AfxGetModuleState() line 235 + 10 bytes
AfxGetResourceHandle() line 22 + 11 bytes
CWnd::ExecuteDlgInit(const char * 0x000000bd) line 3248 + 5 bytes
CDialog::OnInitDialog() line 670 + 15 bytes
DProjectLoader::OnInitDialog() line 71


here's the assembly:

...
...
...
77E839EC   pop         eax
77E839ED   ret
77E839EE   or          eax,0FFFFFFFFh
77E839F1   ret
77E839F2   mov         eax,[7FFE0018]
77E839F7   mov         edx,dword ptr ds:[7FFE0014h]
77E839FD   cmp         eax,dword ptr ds:[7FFE001Ch]
77E83A03   jne         77E839F2
77E83A05   mov         ecx,dword ptr [esp+4]
77E83A09   mov         dword ptr [ecx],edx
77E83A0B   mov         dword ptr [ecx+4],eax
77E83A0E   ret         4
77E83A11   push        ebp
77E83A12   mov         ebp,esp
77E83A14   mov  <----  eax,fs:[00000018]  //!!FAILS HERE!!
77E83A1A   mov         ecx,dword ptr [ebp+8]
77E83A1D   cmp         ecx,40h
77E83A20   jae         77EB86EB
77E83A26   and         dword ptr [eax+34h],0
77E83A2A   mov         eax,dword ptr [eax+ecx*4+0E10h]
77E83A31   pop         ebp
77E83A32   ret         4
77E83A35   push        ebp
...
...
...

GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 7:33
Rama Krishna Vavilala4-Jun-02 7:33 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 7:45
moredip4-Jun-02 7:45 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 7:51
Rama Krishna Vavilala4-Jun-02 7:51 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:06
moredip4-Jun-02 8:06 
GeneralRe: stepping over api calls causes exceptions Pin
Rama Krishna Vavilala4-Jun-02 8:03
Rama Krishna Vavilala4-Jun-02 8:03 
GeneralRe: stepping over api calls causes exceptions Pin
moredip4-Jun-02 8:17
moredip4-Jun-02 8:17 
GeneralCMenu base items Pin
dazinith4-Jun-02 5:38
dazinith4-Jun-02 5:38 
GeneralRe: CMenu base items Pin
Rage4-Jun-02 6:12
professionalRage4-Jun-02 6:12 
Generalgarbage using CFileDialog Pin
Luis E. Cuadrado4-Jun-02 5:17
Luis E. Cuadrado4-Jun-02 5:17 
GeneralRe: garbage using CFileDialog Pin
Tomasz Sowinski4-Jun-02 5:25
Tomasz Sowinski4-Jun-02 5:25 
GeneralRe: garbage using CFileDialog Pin
Luis E. Cuadrado5-Jun-02 1:25
Luis E. Cuadrado5-Jun-02 1:25 
Questionis GDI+ able to display BIG bitmaps ? Pin
jpg4-Jun-02 5:14
jpg4-Jun-02 5:14 
GeneralDX 8.1 Pin
Zizilamoroso4-Jun-02 4:53
Zizilamoroso4-Jun-02 4:53 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 5:42
moredip4-Jun-02 5:42 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 6:33
Zizilamoroso4-Jun-02 6:33 
GeneralRe: DX 8.1 Pin
moredip4-Jun-02 7:23
moredip4-Jun-02 7:23 
GeneralRe: DX 8.1 Pin
Zizilamoroso4-Jun-02 23:06
Zizilamoroso4-Jun-02 23:06 

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.