Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - pure virtual method called: (2 Items)
   
pure virtual method called  
Once in a while when a program I'm working on terminated it will display the message "Pure virtual method called".

The message is printed after main() exit, so it has to be called within the destructor of a global object.  My question 
is, is there a way to set a breakpoint on the function that prints that message.

- Mario
Re: pure virtual method called  
Don't know about the breakpoint, but you could consider creating a signal handler, and set a breakpoint in that (I *
think* it's SIGABRT that's signaled)

Are you calling a virtual function in a constructor somewhere?

The link http://www.artima.com/cppsource/pure_virtual.html maybe could be of some help...

Regards,

Jacob