I'm about to develop an Delphi 5 application using MapPoint 2006.
The problem is that when I close my application, I get an EAccessViolation in Module ole32.dll at 0008D65E, then a message "Runtime error 216 at 00003134".
Does someone of you have the same problem and know how to solve it?
Perhaps I do not close my application correctly... have I to free any objects before closing the application?
What do I have to do before closing my app?
I'm looking forward to get some help...
For your information:
On my form there is a TOlecontainer.
I initialize my application with the following code:
Best wishesCode:procedure TfrmData2Map.FormActivate(Sender: TObject); var vGuid : TGuid; begin OleContainer.CreateObject('MapPoint.Map.EU.13', False); OleContainer.DoVerb(1); OleContainer.OleObjectInterface.GetUserClassID(vGuid); FMap := IDispatch(OleContainer.OleObject) as _Map; // global variable of type _Map mpApplication.Units := geoKm; end;