GMLib Could not complete the operation due to error 80020101
Posted
by
Pierrie
on Stack Overflow
See other posts from Stack Overflow
or by Pierrie
Published on 2013-11-11T15:51:48Z
Indexed on
2013/11/11
15:52 UTC
Read the original article
Hit count: 1841
I get this error "Could not complete the operation due to error 80020101." at random times when displaying a map with a marker on it. I use Delphi 2007 and GMLib [1.2.0 Final].
I have read up on the issue and some suggestions was that the problem is due to commenting or bad syntax in java code, and it was suggested that i take out all the commenting and check for errors in the java code. This i did, i recompiled and reinstalled GMLib after modifying the map.html file. I stripped it of all commenting and parsed it through ie for faults but found none, as expected. But the problem still occurs. Here is a sample of my code to show the map and add the marker :
Var
newmarker : TMarker;
begin
newmarker := GMMarker1.Add();
newmarker.Position.Lat := MarkersToPaint[i].Latitude;
newmarker.Position.Lng := MarkersToPaint[i].Longitude;
newmarker.Visible := True;
newmarker.Title := MarkersToPaint[i].Title;
GMMap1.RequiredProp.Center.Lat := midlat;
GMMap1.RequiredProp.Center.Lng := midlong;
GMMap1.RequiredProp.Zoom := 18;
GMMarker1.ShowElements;
GMMap1.Active := True;
Any help in this matter will be greatly appreciated.
© Stack Overflow or respective owner