Print Page | Close Window

Value of ESP not properly saved...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7749
Printed Date: 13 November 2025 at 9:57am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Value of ESP not properly saved...
Posted By: MacW
Subject: Value of ESP not properly saved...
Date 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?



Replies:
Posted By: ABuenger
Date Posted: 07 August 2007 at 6:46pm
http://forum.codejock.com/forum_posts.asp?TID=7714 - http://forum.codejock.com/forum_posts.asp?TID=7714


-------------
Codejock support


Posted By: MacW
Date 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...



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net