1753850 Members
7433 Online
108807 Solutions
New Discussion юеВ

Re: aCC Runtime error

 
SOLVED
Go to solution
Krishna R
Advisor

aCC Runtime error

Hi,

My application crashed sporadically with SIGABRT, and the following error is printed -

aCC runtime: pure virtual function called for class "..."

I got this error for different classes, and I'm pretty sure that all virtual functions are correctly defined in the derived classes. I dont' get this error on all HP-UX ia64 machines.


Can anyone let me know what the problem could be, whether there is any known patch for aCC runtime library for this problem.

HPUX B.11.23U ia64

Any help is appreciated,

Thanks,
Krishna
2 REPLIES 2
Dennis Handly
Acclaimed Contributor
Solution

Re: aCC Runtime error

>aCC runtime: pure virtual function called for class "..."

You are doing a call to a pure virtual function in that class.

>I'm pretty sure that all virtual functions are correctly defined in the derived classes.

You are not in the derived class. What was the name that was printed, a base class?

>Can anyone let me know what the problem could be

This is a 100% user problem.
Horse) In the base class constructor, you are calling a member function and that is calling a pure virtual function.

Zebra) You have deleted the object. And by mistake you still have a pointer. And then when you call any virtual function that is pure in the base, it will abort.
Krishna R
Advisor

Re: aCC Runtime error

Thanks for the help, I will keep that in mind and debug.

(I'm sorry for the late response)