Code: Select all
try
{
this->MyScript1->Execute();
this->MyTable1->Close();
this->MyTable1->TableName = "satietycurve";
this->MyTable1->Open();
this->MyTable1->Insert();
this->MyTable1->FieldByName("SatietyXML")->AsString = XMLStr;
this->MyTable1->Post();
this->MyConnection1->Connect();
XMLStr.Delete(1,XMLStr.Length());
}
catch(const EMyError &e)
{
ShowMessage(AnsiString("SQL error"));
}
Whene the debugger has reached this->MyScript->Execute i get a error
but instead of jumping to the catch statment i get a error mesage witch I have't created. This happens also when I run the project outside of the IDE. I think that it is the TMyScript that is throughing the exception but why cant i catch it