View Full Version : BI.exe runtime error! Please help!
roman dude
11-22-2009, 01:05
Hello, I was playing a Lusotana campaign today and at about 250 BC the game crashed. A popup came up saying that there was a runtime error with BI.exe (I have the BI.exe mod) and below it the popup said:
R6025
-pure virtual function call
Anyone know what this is and how I can fix it?
Skullheadhq
11-22-2009, 11:30
From Microsoft Support:
Cause- 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.
The error occurs when you indirectly call a pure virtual function within the context of a call to the constructor or destructor of an abstract base class. This is illustrated in the sample code below, along with some more description.
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.
XSamatan
11-22-2009, 18:12
Just for my interest:
Is that repeatable?
XSamatan
roman dude
11-22-2009, 21:11
Thanks, at least I know it's not something I did. Sadly I don't know anything about programming so I can't fix it.
XSamatan
11-23-2009, 00:32
I think you should try a new installation. Changing the source-code of the BI executable would not only be arduous but also not legal. If this happened just one, I would forget it. If it is repeatable, even after a reinstall, check your PC for virus or windows problems.
XSamatan
hey samartan i seem to have the same problem when capturing SPQR and realized that many others have the same bug:wall:. ive captured SPQR before with same CD on my last laptop with win vista but now using win7 with new one. ive reinstalled the game with no results. any suggestions?
XSamatan
01-31-2012, 13:14
Welcome to the forum!
Please re-write your post so that I can understand your problem properly...does BI crash repeatable? When exactly does the crash occur? Check this list (https://forums.totalwar.org/vb/showthread.php?t=103681) about technical problems first and see if any advice solves your problem.
XSamatan
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.