Unhandlet exception

Conversations pertaining to the testing of GMAT

Unhandlet exception

Postby Ajaja » Sat Mar 28, 2015 4:54 pm

Unhandled exception occurred in GMAT vR2014a-2 in Windows XP on old single-core processors when trying to create new coordinate systems or edit existing one.
Problem in CoordSysCreateDialog.cpp:
Code: Select all
void CoordSysCreateDialog::OnTextUpdate(wxCommandEvent& event)
{
   if (nameTextCtrl->GetValue().Trim() != "")
   {
      EnableUpdate(true);
   }

   if (mCoordPanel->GetEpochTextCtrl()->IsModified() )    // <<<<<<<<< !!!!!!! Exception here
   {
      EnableUpdate(true);
      mIsTextModified = true;
   }

   if (mCoordPanel->IsAlignmentConstraintTextModified())
   {
      #ifdef DEBUG_TEXT_MODS
         MessageInterface::ShowMessage(" .... setting mIsLACTextModified to true ...\n");
      #endif
      EnableUpdate(true);
      mIsLACTextModified = true;
   }
}

and in CoordSystemConfigPanel.cpp:
Code: Select all
void CoordSystemConfigPanel::OnTextUpdate(wxCommandEvent& event)
{
   mObjRefChanged = true;
   EnableUpdate(true);
   if (mCoordPanel->GetEpochTextCtrl()->IsModified() )   // <<<<<<<<< !!!!!!! Exception here
   {
      mEpochChanged = true;
      #ifdef DEBUG_COORD_PANEL_TEXT
         MessageInterface::ShowMessage("Text has been updated and epoch has been changed!!!\n");
      #endif
   }
}


mCoordPanel may not be created yet but OnTextUpdate event already executed (maybe my PC is too old and slow ;) )
To avoid this problem I've added if(mCoordPanel){...} and mCoordPanel=0 initialization into CoordSysCreateDialog.cpp/CoordSystemConfigPanel.cpp and recompiled GMAT for myself. Now it works fine.
Ajaja
 
Posts: 5
Joined: Thu Mar 26, 2015 11:14 pm

Return to Testing

Who is online

Users browsing this forum: No registered users and 1 guest