When I complie program it show this arguement
"R6025 - Pure virtual function call"
How can I solve this error
Pleae help me.
Thx a million.
R6025 Error Plz help me
This happens when you call a pure virtual method from a base class destructor/constructor. Check your code.
Example:
<edit> Btw some solutions:
Example:
Code: Select all
class MyBaseClass {
public:
// Constructor calling virtual pure method
MyBaseClass() {
Init();
}
// Destructor calling virtual pure method
virtual ~MyBaseClass() {
Release();
}
// The pure virtual method
virtual void Init() = 0;
// The pure virtual method
virtual void Release() = 0;
}
class SomeClass : public MyBaseClass {
void Init() {
// Some code
}
void Release() {
// Some code
}
}
- Do not call the method from constructor/destructor
- Give an empty code to the virtual pure method on the base class
Last edited by Warchief on Thu Feb 15, 2007 6:24 pm, edited 1 time in total.
Warchief's Warboard 3D Now hotseat release
This has happened to me when I recompiled Irrlicht but forget to copy the new dll to where I need it (my demos are all self-contained).neppyweb wrote:I try but It does not work it sill appear
Irrlicht Demos: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=45781
Think the error you guys talk about is the one that reads:
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.
Warchief's Warboard 3D Now hotseat release
By the way i modified the code example because it may happen within the constructor as well as within the destructor.
Warchief's Warboard 3D Now hotseat release