Hi there,
I'm using MP2004 in delphi 5. My application uses an OleContainer that initialise MP 2004 in this way:
OleContainer1.CreateObject('MapPoint.Map.EU.11', False);
OleContainer1.DoVerb(ovPrimary);
OleContainer1.OleObjectInterface.GetUserClassID(vG uid);
FMap := IDispatch(OleContainer1.OleObject) as _Map;
In the main form i introduce some components like textbox, buttons, Memo etc. and several times, when I shutdown the application, I have this message:
"Project1 has raised exception class EAccessViolation with message ' Access Violation at address 77ADCA82 in module "ole32.dll". Read of Address 00C2762C'. Process Stopped. Use Step or Run to Continue."
The addresses are the same everytime the exception comes up.
When I insert new buttons or textbox the exception raises; when I remove the new components the Exception does not raise.
It's very strange; could someone help me?
Thanks in advance.