Thursday, July 9, 2009

Error message Microsoft C++ Runtime error R6025?

After I open Corel Paintshop Pro Photo XI I get that message. If I click on it, it closes and I get it again. If I click it a second time, my applications shuts down. Does anyone know how to fix this? Qualified answers only, please.

Error message Microsoft C++ Runtime error R6025?
I did a little research and it looks like there's not anything you can do, but something making a call with bad timing. Did you check for updates to the app on the mfg site?
Reply:This error occurs when your application indirectly calls a pure virtual member function in a context where a call to the function is not valid. In most cases, the compiler detects this and reports the error when building the application. But depending on how your code is written, sometimes the problem is detected only at run-time.


RESOLUTION


Calling a pure virtual function is a programming error, so you need to find the call to the pure virtual function and rewrite the code so it is not called.





One way to find a call to a pure virtual function is to replace the pure virtual function with an implementation that calls the Windows API function DebugBreak. When using the debugger, DebugBreak will cause a hard-coded breakpoint. When the code stops running at this breakpoint, you can view the callstack to see where the function was called.





Another way to find a call to a pure virtual function is to set a breakpoint on the _purecall function that is found in PureVirt.c. Breaking on this function has the advantage of keeping the stack intact so that you can trace what is occurring.


No comments:

Post a Comment