Print Page | Close Window

Application crashing saying chkesp.c erro

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=3412
Printed Date: 26 April 2024 at 8:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Application crashing saying chkesp.c erro
Posted By: jigarmehtamscit
Subject: Application crashing saying chkesp.c erro
Date Posted: 15 December 2005 at 11:56am

Hi,

File : i386\chkesp.c
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.

What does this error mean ?

my executable (developed using just codejock classes, no functionality from my side is attached.. just a sample one..) runs perfectly on my machine but when i give it on to the client machine.. it crashes while loading.. by giving above error..

I need to solve this issue.. how can I ??

Thx.


-------------
Regards,
Jigar Mehta



Replies:
Posted By: Oleg
Date Posted: 16 December 2005 at 4:15am

Hi,

Such problem can appear if you use another version/compiller for ToolkitPro dll

Do you deliver Toolkit dll?

Be sure you copy dll from bin directory of compiller you use to make your application. (if you have some VC versions installed)



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Warren
Date Posted: 16 December 2005 at 11:22am
Have you tried checking the DLLs you are using?

In my experience, if a program works fine on one box, and dies on another, DLLs are the first place I look.

Get dependecy walker:
http://www.dependencywalker.com/
and run this on your .exe (just drag/drop the .exe into the Dependency Walker) on BOTH the working box, and the client box where it dies. This will show you the DLLs loaded, and they are probably different.

If this is the problem, check which DLLs you will need to install, and/or use the vcredist program from Microsoft to update the client system with the problem.

Best of Luck...

Warren


Posted By: jigarmehtamscit
Date Posted: 18 December 2005 at 2:19pm
Hi,

Yes its solved now.. The problem as of now, I think was I was using debug exe and i had an activex control which was build using release build... I just made a release build of my application  (Which removed that pre-check for function stack..) and that solved the error.. still investigating why the error was coming..

Thx for your help..



-------------
Regards,
Jigar Mehta


Posted By: Tsenoh
Date Posted: 15 November 2006 at 8:31am
Hi!

I have the same error when I start my application. But it even doesn't work on my developer machine.

The thing is, I have my old application, and am trying to include CJ Xtreme CommandBars into it to freshen up my GUI.

I started working with evaluation version (10.3) for VC++ 6.0 and everything was fine. Now I've purchased CommandBars package and tried to build my application newly. It compiles without problems, but when I start it, I get the above mentioned error.

I am using "MFC in shared DLL" project settings. My IDE is VC++ 6.0 with SP6. My system is Windows XP Home SP2.

What could be wrong?

Thanks!


Posted By: Oleg
Date Posted: 15 November 2006 at 9:35am
Hello,
Delete all old Debug files. Totally clean developemnt  folders.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Tsenoh
Date Posted: 17 November 2006 at 6:22am
Thanks! It helped. I forgot to substitute evaluation Style DLL's with purchased ones.


Posted By: ronaldsnoeck
Date Posted: 04 May 2009 at 7:38am
I am developing a Multi threaded c++ program. This program uses a dll.
 
"I also had the error message:
File : i386\chkesp.c
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."
I solved the problem by using the same "code Generation" for building the dll and the program that uses the dll.
The dll "Multi threaded DLL" and the program "Multi threaded"


Posted By: Pablo Garcia
Date Posted: 20 February 2012 at 2:19pm
Hi,
 
I  developed a c++ program. It used to run perfectly using VC++5.0.
I changed my developer machine and also the compiler to VC++ 6.0. When I compile it now, I do not get any error but when I run the program (exe file)I get the above mentioned error.

 My IDE is VC++ 6.0 with SP6. My system is Windows XP Home SP2.

What could be wrong?

Thanks!


-------------
Pablo



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