Runtime error: pure virtual function call

Monday, March 29, 2010 at 3:48 PM

Runtime Error!
Program C\Program Files\Altova\XMLSpy2008\XMLSpy.exe
- pure virtual function call

From the Microsoft Support Center:
"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. "

Sounds like I detected it at run-time and not compile-time!