[vtkusers] vtkFLTK examples

Marius S Giurgi rendezvous at dreamxplosion.com
Tue Feb 1 11:46:05 EST 2005


Sean,

In your MorningStarBase example (cxx file) isn't it supposed to be 
(this->Mace != NULL) in the first conditional instead of (this->Cone != 
NULL) ? Just wondering.


MorningStarBase::~MorningStarBase()
{
   if (this->Cone != NULL)
     {
     this->Mace->UnRegister(this);
     this->Mace = NULL;
     }
   if (this->Cone != NULL)
     {
     this->Cone->UnRegister(this);
     this->Cone = NULL;
     }
   if (this->MaceWindow != NULL)
     {
     this->MaceWindow->hide();
     delete this->MaceWindow;
     this->MaceWindow = NULL;
     }
   if (this->ConeWindow != NULL)
     {
     this->ConeWindow->hide();
     delete this->ConeWindow;
     this->ConeWindow = NULL;
     }
}

marius

PS: Should I sent these kind of (possible) bug notices directly to you 
instead of posting it on vtkuser list? I sent you a few other emails 
regarding some possible errors in your examples but I'm not sure you 
got any. Let me know.




More information about the vtkusers mailing list