Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
pure virtual method called is a runtime error.
Below I posted code to reproduce the error, which I adapted from [1]. Also from [1]: 'So what’s the moral of the story? If you ever see the error message pure virtual method called / terminate called without an active exception, check your object lifetimes! You may be trying to call members on a destructing (and thus incomplete) object'.
Operating system(s) or programming environment(s)
Lubuntu 11.04 (natty)
Qt Creator 2.0.1Libraries used:
STL: GNU ISO C++ Library, version 4.5.2
#------------------------------------------------- |
#include <thread> |
pure virtual method called |
The program flow can be seen in the (png) picture above. Not how first the instance is deletedm before the thread starts working with it.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.