Solved

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

Posted on 2002-05-04
4
789 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:Kdo
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now