Application crashing saying chkesp.c erro |
Post Reply |
Author | |
jigarmehtamscit
Groupie Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
Posted: 15 December 2005 at 11:56am |
Hi, File : i386\chkesp.cLine : 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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Warren
Groupie Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
|
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 |
|
jigarmehtamscit
Groupie Joined: 29 October 2005 Location: India Status: Offline Points: 64 |
Post Options
Thanks(0)
|
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 |
|
Tsenoh
Groupie Joined: 08 November 2006 Status: Offline Points: 69 |
Post Options
Thanks(0)
|
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! |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Delete all old Debug files. Totally clean developemnt folders.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Tsenoh
Groupie Joined: 08 November 2006 Status: Offline Points: 69 |
Post Options
Thanks(0)
|
Thanks! It helped. I forgot to substitute evaluation Style DLL's with purchased ones.
|
|
ronaldsnoeck
Newbie Joined: 04 May 2009 Location: Netherlands Status: Offline Points: 1 |
Post Options
Thanks(0)
|
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"
|
|
Pablo Garcia
Newbie Joined: 20 February 2012 Status: Offline Points: 1 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |