Solved

ESP error! in Debug Mode (Visual C++)

Posted on 2002-05-04
4
792 Views
Last Modified: 2011-09-20
Debug Error !
 
 Modle :
 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 is th problem ????..fuction call is correct ???
0
Comment
Question by:jhjeon
4 Comments
 
LVL 1

Accepted Solution

by:
Black_End earned 200 total points
ID: 6989661
The reason for that error is that you are calling a stdcall function but the compiler thinks that it is not.
The bug will also happend in Release mode, but in Release mode it just won't see the message box.
Try to define the forward of the function like this:
void __stdcall func()
0
 
LVL 86

Expert Comment

by:jkr
ID: 6991145
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7116571
Please update and finalize this.
Moondancer - EE Moderator
0
 
LVL 45

Expert Comment

by:Kent Olsen
ID: 9479810
No comment has been added lately, so it's time to clean up this TA.

I will leave a recommendation in the Cleanup topic area that this question is:
Accept Black_End's comment as answer

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Kent (Kdo)
EE Cleanup Volunteer
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question