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

C / C++ / MFC

 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 1:55
pavya_Cool14-Jul-08 1:55 
GeneralRe: fatal error Pin
CPallini14-Jul-08 1:57
mveCPallini14-Jul-08 1:57 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 2:44
pavya_Cool14-Jul-08 2:44 
QuestionRe: fatal error Pin
CPallini14-Jul-08 2:46
mveCPallini14-Jul-08 2:46 
AnswerRe: fatal error Pin
pavya_Cool14-Jul-08 2:49
pavya_Cool14-Jul-08 2:49 
GeneralRe: fatal error Pin
CPallini14-Jul-08 2:51
mveCPallini14-Jul-08 2:51 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 3:14
pavya_Cool14-Jul-08 3:14 
GeneralRe: fatal error Pin
Michael Schubert14-Jul-08 5:44
Michael Schubert14-Jul-08 5:44 
GeneralRe: fatal error Pin
CPallini14-Jul-08 9:42
mveCPallini14-Jul-08 9:42 
GeneralRe: fatal error Pin
kDevloper14-Jul-08 0:18
kDevloper14-Jul-08 0:18 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 1:20
pavya_Cool14-Jul-08 1:20 
GeneralRe: fatal error Pin
kDevloper14-Jul-08 1:30
kDevloper14-Jul-08 1:30 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 1:53
pavya_Cool14-Jul-08 1:53 
AnswerRe: fatal error Pin
Mark Salsbery14-Jul-08 6:03
Mark Salsbery14-Jul-08 6:03 
GeneralRe: fatal error Pin
pavya_Cool14-Jul-08 18:48
pavya_Cool14-Jul-08 18:48 
QuestionRe: fatal error Pin
David Crow14-Jul-08 8:33
David Crow14-Jul-08 8:33 
Questioninput parameter debug Pin
George_George13-Jul-08 22:50
George_George13-Jul-08 22:50 
AnswerRe: input parameter debug Pin
Matthew Faithfull14-Jul-08 0:40
Matthew Faithfull14-Jul-08 0:40 
GeneralRe: input parameter debug Pin
George_George14-Jul-08 16:12
George_George14-Jul-08 16:12 
GeneralRe: input parameter debug Pin
Matthew Faithfull15-Jul-08 0:42
Matthew Faithfull15-Jul-08 0:42 
GeneralRe: input parameter debug Pin
George_George15-Jul-08 22:26
George_George15-Jul-08 22:26 
GeneralRe: input parameter debug Pin
Matthew Faithfull16-Jul-08 6:46
Matthew Faithfull16-Jul-08 6:46 
GeneralRe: input parameter debug Pin
George_George16-Jul-08 19:46
George_George16-Jul-08 19:46 
AnswerRe: input parameter debug Pin
Mark Salsbery14-Jul-08 6:11
Mark Salsbery14-Jul-08 6:11 
GeneralRe: input parameter debug Pin
George_George14-Jul-08 16:16
George_George14-Jul-08 16:16 
Thanks Mark,


Here is my code and related assembly code. How do you know which register/memory is used as 1st and 2nd input parameter to CoInitializeEx?

0:000> kp
Child-SP          RetAddr           Call Site
00000000`0012ff18 00000001`4000100e ole32!CoInitializeEx(void * pMalloc = 0x00000034`00000008, unsigned long flags = 0x184) 
00000000`0012ff20 00000001`400011d2 TestCoInitializeEx1!main(void)+0xe
00000000`0012ff50 00000000`77d5964c TestCoInitializeEx1!__tmainCRTStartup(void)+0x11a
00000000`0012ff80 00000000`00000000 kernel32!BaseProcessStart(<function> * lpStartAddress = 0x00000001`40001320)+0x29

0:000> ub 00000001`4000100e
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xff8):
00000001`40000ff8 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffa):
00000001`40000ffa 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffc):
00000001`40000ffc 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main <PERF> (TestCoInitializeEx1+0xffe):
00000001`40000ffe 0000            add     byte ptr [rax],al
TestCoInitializeEx1!main [d:\visual studio 2008\projects\testcoinitializeex1\testcoinitializeex1\main.cpp @ 5]:
00000001`40001000 4883ec28        sub     rsp,28h
00000001`40001004 33d2            xor     edx,edx
00000001`40001006 33c9            xor     ecx,ecx
00000001`40001008 ff152a110000    call    qword ptr [TestCoInitializeEx1!_imp_CoInitializeEx (00000001`40002138)]

#include <windows.h>
#include <objbase.h>

int main()
{
	CoInitializeEx(NULL, 0);

	CoUninitialize();

	return 0;
}



regards,
George

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.