Can not derive simultaneously from TGFrame and TTimer ????

From: Wei Xie (xiewei@clever.weizmann.ac.il)
Date: Sat Mar 27 1999 - 12:05:59 MET


Dear Rooters, 

The attached file seems to show I can not derived simultaneously from 
TGFrame and TTimer. The error message is :

>>  CC: "ControlPanel.h", line 12: error: ambiguous TObject::operator
>>  new() and TObject::operator new() (no virtual base) (1302)
>>  BCC: "ControlPanel.cxx", line 8: error: ambiguous TObject::operator
>>  new() and TObject::operator new() (no virtual base) (1302)
>>*** Error exit code 1

What could be the reason ?
 
Thanks and sincerely yours
Xie



#include "ControlPanel.h"

ClassImp(ControlPanel)

//_____________________________________________________________
ControlPanel::ControlPanel(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options) : TTimer(0, kTRUE), TGMainFrame(p, w, h)
{ 
}

//_______________________________________
ControlPanel::~ControlPanel()
{

}

#ifndef _controlpanel_
#define _controlpanel_

#include <stdlib.h>

#include <TTimer.h>
#include <TEnv.h>
#include <TGXW.h>
#include <TSystem.h>
#include <TGFrame.h>

class ControlPanel : public TTimer, public TGMainFrame{

private:
   float 	Labelfont;

public:

   ControlPanel(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options);
   ~ControlPanel();
   virtual Bool_t  Notify()
   {
      TTimer::Reset();
      return kFALSE;
   }


   ClassDef(ControlPanel,1)
};

#endif



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