Runtime check error # 0

I am getting this runtime error when using the IID_IWebBrowser2 interface for CLSID_InternetExplorer.

Runtime Check Failure # 0 - The ESP value was not stored properly during the function call. This is usually the result of a call to a function declared with one call, with a function pointer declared with a different calling convention.

This error occurs when I call the navigation method.

+2


source to share


1 answer


The problem is that the client (your program) is using a different calling convention from what the server (COM object) expects. You need to check the declaration of the COM interface methods and adjust them accordingly.



See this question for a solution to actually the same problem.

+2


source







All Articles