c++builder xe8 - TMapView.AddPolyline crashes the app -
hello trying create application test map capabilities of tmapview component. trying code add polylines on map surface:
tarray__1<tmapcoordinate> mapcoords; mapcoords.length = 2; mapcoords[0].latitude = 0.1; mapcoords[0].longitude = 0.1; mapcoords[1].latitude = 0.5; mapcoords[1].longitude = 0.5; tmappolylinedescriptor mapdesc = tmappolylinedescriptor::create(mapcoords); mapview1->addpolyline(mapdesc); mapview1->location = mapcoords[0];
i have no idea why code crashes app. can't debug app because working on virtual machine(i not allowed install 3rd party apps on specific laptop) , virtual machine doesn't recognize phone. please me out.
Comments
Post a Comment