Hi all, using vb.net 2005 and mp2006, the code below seems to work fine until I try and add a dataset, then I get 'unexpected error'. Any ideas please.
Code:Public PPVehicles As MapPoint.DataSet map.objMap = mp1.ActiveMap 'Remove any existing objects (so that we may rebuild them) Try map.objMap.DataSets("Addbook").Delete() map.objMap.DataSets("StaticObj").Delete() map.objMap.DataSets("Vehicles").Delete() Catch End Try Try 'error on line below If Not PPVehicles Is Nothing Then PPVehicles.Delete() Catch ex As Exception End Try
captured error is
System.Runtime.InteropServices.COMException {"An unexpected internal error occurred."} System.Runtime.InteropServices.COMException
Thanks in advance
![]()