Re: Inhereting

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 12 1998 - 14:44:16 MET


Selim Issever wrote:

> Dear all,..
>
> does anyone see what wrong with this?
>
> >>> file ab.C ----------------------
> class TC : public TCanvas {
> public:
>   TC():TCanvas("c", "abc") {
>
>   }
> private:
>
> };
>
> void ab() {
>   cout << "start" << endl;
>   TC a;
>   cout << "end" << endl;
> }
> <<< -------------------------------
>
> >>> root session ------------------
> root [0] .x ab.C
> start
> end
> Fatal in <operator delete>: storage area overwritten
> aborting
> IOT trap/Abort (core dumped)
> <<< -------------------------------

A class defined interactively cannot  inherit from a compiled class.

Rene Brun



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:29 MET