Platform Builder/debugger extension: ReadMemory crashes the extension
- From: olivier.martin.fr@xxxxxxxxxxxxxx
- Date: Thu, 2 Oct 2008 07:33:33 -0700 (PDT)
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
convention."
Source of the failing entry point :
DECLARE_API(hello)
{
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
Extension
http://msdn.microsoft.com/en-us/library/cc440230.aspx
"hello" is my only command
I am using PB WinCE 6.0 R2
Best Regards,
Olivier
.
- Follow-Ups:
- Re: Platform Builder/debugger extension: ReadMemory crashes the extension
- From: olivier . martin . fr
- Re: Platform Builder/debugger extension: ReadMemory crashes the extension
- Prev by Date: Re: Create user account for ftpd
- Next by Date: Re: KernelIoControl error 50
- Previous by thread: About Coredll.dll export function (CE 6.0)
- Next by thread: Re: Platform Builder/debugger extension: ReadMemory crashes the extension
- Index(es):
Relevant Pages
|