Error: pure virtual method called - terminate called without an active exception - Aborted
Usually you get this error when call your virtual function from constructor or destructor. Check that that is not the case.
(I assume that your demo code is not complete).