Error 80020101


Hello everyone, I have the following problem. Every time I hide the map and try to use some function of class TTMSFMXWebGMaps I get this error: Exception 80020101. I noticed that if I did not hide the component the error did not happen. Some help?



void __fastcall TFormMain::TMSFMXWebGMapsDownloadFinish(TObject *Sender)
{

TMSFMXWebGMaps->Visible = true; //Error is here, if comment this line, i not recive this error
TMSFMXWebGMaps->DeleteAllMapMarker();
TMSFMXWebGMaps->DeleteAllMapPolyline();
TMSFMXWebGMaps->DeleteAllMapPolygon();

TMarker *Marker;
TMSFMXWebGMaps->Routing->PolylineOptions->Color = TAlphaColorRec::Green;


Marker = TMSFMXWebGMaps->Markers->Add();
Marker->Draggable = false;
Marker->Latitude = this->Lat;
Marker->Longitude = this->Lng;
Marker->Title = L"In?cio";
Marker->MapLabel->Text = L"<b>Voc? est? aqui</b>";
Marker->Icon = this->MarkImg;
TMSFMXWebGMaps->CreateMapMarker(Marker);

TMSFMXWebGMaps->MapOptions->ZoomMap = 17;
TMSFMXWebGMaps->MapPanTo(this->Lat, this->Lng);

Marker = TMSFMXWebGMaps->Markers->Add();
Marker->Draggable = false;
Marker->Latitude = -2.514080;
Marker->Longitude = -44.225658;
Marker->Title = L"0045";
Marker->MapLabel->Text = L"Taxi";
Marker->Icon = this->Taxi;
TMSFMXWebGMaps->CreateMapMarker(Marker);

Marker = TMSFMXWebGMaps->Markers->Add();
Marker->Draggable = false;
Marker->Latitude = -2.51408;
Marker->Longitude = -44.2277844;
Marker->Title = L"0057";
Marker->MapLabel->Text = L"Taxi";
Marker->Icon = this->Taxi;
TMSFMXWebGMaps->CreateMapMarker(Marker);

LocationSensor->Active = false;


}


Hi,


This issue has been fixed and will be included with the next release of TMS FMX WebGMaps.