what does ESP means?
-
Dear all, When the client calls the member function of the interface in the exe server,the following assert is displayed in the dialog . "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 chkesp.c line:42" I don't know how to solve the problem .Could anyone help me? Thanks a lot
-
Dear all, When the client calls the member function of the interface in the exe server,the following assert is displayed in the dialog . "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 chkesp.c line:42" I don't know how to solve the problem .Could anyone help me? Thanks a lot
ESP is the stack pointer register E stands for 32 bit (as opposed to the 16 bit pointer on the 80286 many years ago. The error message is usually correct, but sometimes something really bad happened like you whacked something on your stack (buffer overrun), and sometimes you can get this message by stepping over code in the debugger using "set net statement". If you know that you haven't been writing to memory off the end of an array thats a stack variable, take a look at the Docs on "calling convetions". what typically happens in these cases is that you have 2 funtion prototypes that declare the function to have differing calling convetions. You need to make sure that the person who implements the function agrees with the person who calls the function as to things like where function arguments are passed on the stack or in registers, etc. int f,r,a,c,t,A,l=42;main(){while(--l>-42)for(t=-60;t++<20;putch('J'-f))for(A=a=r=f=0;++f<42&&r*r+A*A<7056;c=r+t,a=l+A,r=(c*c-a*a)/42,A=c*a/21);}