Hi, me again.
Form form1 = new Form();
AxMappointControl mapPoint = new AxMappointControl();
form1.Controls.Add(mapPoint);
mapPoint.EndInit();
mapPoint.NewMap(2);
...
Calculate Route etc., to put it simple - some Data is inserted
...
form1.Show();
Now i want that when the form is closed, that the Data still
stays with my ActiveX Control and i can make further
operations. Maybe after that display it on another form.
// After
form1.Close();
// and
form2.Controls.Add(mapPoint);
mapPoint.EndInit();
// i make a operation that returns the
// ActiveRoute
mapPoint.ActiveMap.ActiveRoute
InvalidComObjectException - A Com-Object, which was disconnected
from the basis of RCW, can't be used - in the AxMapPoint.cs:
return this.ocx.ActiveMap; //Exception at that part
I think it got something to do with the Close-Method.
Any suggestions or solutions to this problem?