Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. Collapse All
Subject Author Date
Debabrata Mukherjee Aug 28, 2007 - 7:54 AM

Hi,

I’m getting the runtime error: Run-Time Check Failure #0 - 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 analyzed the code and found that my code is using a virtual function from Prof-UIS namely CExtControlBar::Create(). And the error occurs at this point. If I skip this function, it works fine but no toolbar control are visible. So, this method is necessary for creating and displaying the toolbar.

Could anyone please let me know, why I’m getting such error and what can be done to remove it?

Thanks,
Debabrata

Technical Support Aug 28, 2007 - 1:26 PM

There is an article at the Microsoft Support web site, which seems to be the answer to your question.

BUG: You receive a run-time exception error message when you run the debug build of your application with the /RTCs compiler option enabled