Platform Builder/debugger extension: ReadMemory crashes the extension

I am trying to develop a debugger extension for my driver but I have
got an error when I launch one of the simplest testcase.

When I launch the "hello" command of my extension, I have got this
error window :

"Debug Error !
Program : ...
Module : ...\hello_ext.dll
File : c:\......\hello.cpp
Line : 42
The value of ESP was not properly saved across a function call. This
is usually a result of calling a function declared with one calling
convention with a function pointer declared with a different calling

Source of the failing entry point :
ULONG ulTest = 0;
ULONG ulBytesRead = 0;
ReadMemory(0,&ulTest,sizeof(ULONG),&ulBytesRead); //(line 42)

I have followed this Howto : How to Create and Debug a Debugger

"hello" is my only command
I am using PB WinCE 6.0 R2

Best Regards,

Relevant Pages

  • Re: Monitor 1680x1050 und ATI/AMD Grafikkarte
    ... Module class: X.Org Server Extension ... RADEONHD: Calling DAC_LoadDetection ... RADEONHD: DAC_LoadDetection Successful ... RADEONHD: EnableCRTC Successful ...
  • Re: People Are Still Suing For Gittin
    ... your neighbrohood with a string and calling the resulting open area ... is not "calling the resulting open area an extension of my house." ...
  • Re: Migration versus new install
    ... Some geniuos in his family told him it was a bad idea since it had 3 letter ... extension, which will make it easy to break in. ... I went in and imaged the server + ntbackup. ... Calling an illegal alien an "undocumented worker" is like calling a ...
  • Re: [PATCH] X25: Add ITU-T facilites
    ... Thanks for the feedback Arnaldo. ... Adds options for ITU DTE facilities to X.25, called address extension and calling address extension ...
  • Re: How to download file
    ... Public Function GetMimeType(ByVal extension As String) As String ... Dim regkey As Microsoft.Win32.RegistryKey = ... If regkey IsNot Nothing AndAlso regkey.GetValueIsNot ... It needs to launch a local application. ...