Print Page | Close Window

error: Exception 80020101

Printed From: TMS Software
Category: FMX Components
Forum Name: FMX WebGMaps / WebOSMaps
Forum Discription:
Printed Date: 13 Nov 2019 at 12:43am

Topic: error: Exception 80020101
Posted By: Gledston de Oliveira Reis
Subject: error: Exception 80020101
Date Posted: 18 May 2017 at 1:10pm

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

void __fastcall TFormMain::TMSFMXWebGMapsDownloadFinish(TObject *Sender)

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

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



Posted By: Bart Holvoet
Date Posted: 18 May 2017 at 2:43pm

What is the specific reason to toggle the Visible property in the OnDownloadFinish event handler?
The OnDownloadFinish event shouldn't be triggered when the TMSFMXWebGMaps control is not visible. I would recommend to remove the first line where visible is set to true.

However, thanks for notifying, we'll investigate if this behavior can be improved in a future version.

Posted By: Gledston de Oliveira Reis
Date Posted: 18 May 2017 at 4:44pm
It was not in this event, just a demonstration. What I mentioned is that if I hide the component and then display again the error happens when I try to call the functions, for example:

TMSFMXWebGMaps-> DeleteAllMapMarker (); // crash here
TMSFMXWebGMaps-> DeleteAllMapPolyline (); // or here
TMSFMXWebGMaps-> DeleteAllMapPolygon ();

Posted By: Bart Holvoet
Date Posted: 22 May 2017 at 8:56am
Can you please try to use the call "TMSFMXWebGMaps->Reinitialize;" instead ?

Print Page | Close Window