Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

error: Exception 80020101

 Post Reply Post Reply
Author
Gledston de Oliveira Reis View Drop Down
New Member
New Member
Avatar

Joined: 21 Mar 2017
Posts: 17
Post Options Post Options   Quote Gledston de Oliveira Reis Quote  Post ReplyReply Direct Link To This Post Topic: error: Exception 80020101
    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
TMSFMXWebGMaps->DeleteAllMapPolygon();

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

....

}
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2085
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 2017 at 2:43pm
Hi,

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.
Back to Top
Gledston de Oliveira Reis View Drop Down
New Member
New Member
Avatar

Joined: 21 Mar 2017
Posts: 17
Post Options Post Options   Quote Gledston de Oliveira Reis Quote  Post ReplyReply Direct Link To This Post 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 ();
Back to Top
Bart Holvoet View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 2085
Post Options Post Options   Quote Bart Holvoet Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2017 at 8:56am
Can you please try to use the call "TMSFMXWebGMaps->Reinitialize;" instead ?
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down