Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 816
  • Last Modified:

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

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
jhjeon
Asked:
jhjeon
1 Solution
 
Black_EndCommented:
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
 
MoondancerCommented:
Please update and finalize this.
Moondancer - EE Moderator
0
 
Kent OlsenData Warehouse Architect / DBACommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now