Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Value of ESP not properly saved...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Value of ESP not properly saved...

 Post Reply Post Reply
Author
Message
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Topic: Value of ESP not properly saved...
    Posted: 07 August 2007 at 6:01am
"Run-Time Check Failure #0 - 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."


I receive this error message in Visual Studio 2005 quite often in

DWORD WINAPI CXTPSkinManagerApiHook::ThreadProcHook(LPVOID lpThreadData)

What's the reason?
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 07 August 2007 at 6:46pm
Codejock support
Back to Top
MacW View Drop Down
Senior Member
Senior Member


Joined: 26 June 2007
Status: Offline
Points: 253
Post Options Post Options   Thanks (0) Thanks(0)   Quote MacW Quote  Post ReplyReply Direct Link To This Post Posted: 08 August 2007 at 7:45am
Hi,

thank you very much for the pointer. That's what I came up with myself while trying to avoid the problem. Not sure if it helped yet.

But since I get this quite often in my multi-threaded application (one one user interface thread,though) I thought I should report this.

I not only get the ESP diagnosis error but also some GPF's in the XTP code, depending on how many threads my application runs, or if I include components like WebControl2 or a QuickTime window.

Seems that the XTP hook code is a bit sensitive regarding certain conditions and circumstances...
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.062 seconds.