Community of VE/MapPoint Users and Developers
This is a discussion on "Catastrophic" Error? within the Development forums, part of the MapPoint 2006/2009 Discussion category; Started getting a really weird error today. This is a VB6 add-in. Error occurs with MapPoint 2006, but not 2004. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| "Catastrophic" Error? I have code that is reading some waypoint data. First waypoint, I can read the name, time, distance, etc. fine. But as soon as I try to access the Waypoint.Location property I get an Exception -21474188113 (8000FFFF) and one of two messages: usually "Method '~' of object '~' failed", or occasionally one that talks of a catastrophic COM error. It smells of a bad COM reference, or a reference to a COM library that has changed. However I can't see what it is, and uninstalling, rebooting and re-installing should fix it but doesn't. I'm building against MapPoint 2002, but that has been fine for 2002/4/6 operations in the past. Has anyone seen anything like this? It is really strange. I'm beginning to think that recent Microsoft updates might have broken something? Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| ||||
| Re: "Catastrophic" Error?
One thought is that I've had to switch from my original disks to the ones supplied in the Action Pack because one of the original disks died on me. However this should be identical - there's nothing to suggest it isn't. The Action Pack ships with build 13.00.15.2800. Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
| ||||
| Re: "Catastrophic" Error?
I'm not sure if I understand why it suddently started failing, but it now looks like a data problem (in two different map files!?) and I have a workaround. Instead of using the Waypoint.Location property, I am now using the Anchor property. The troublesome waypoint returns a duff Location object, but has a null object for the Anchor property. The following works: Dim obj As Object Set obj = oRoute.Waypoints.Item(iWay).Anchor If (obj Is Nothing) Then Set oPin = Nothing ElseIf (TypeOf obj Is MapPoint.Pushpin) Then Set oPin = obj Else ' Location Set oLoc = obj ' Do something cunning and proprietary with oLoc, here End If Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
![]() |
| Tags |
| catastrophic, error |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error in calling "get_streetAddress" | dgaranz | MapPoint 2006/2009 Discussion | 5 | 06-23-2006 06:03 AM |
| Getting "unspecified error" in VB during FindAddre | mschoonmaker | MapPoint 2006/2009 Discussion | 5 | 06-12-2006 02:11 PM |
| MapPoint OLE error: "Could not update object" | wiecho_k | MapPoint 2006/2009 Discussion | 1 | 07-23-2005 11:53 AM |
| Error "overflow execution stack" while readinq a | Anonymous | MapPoint 2006/2009 Discussion | 5 | 02-18-2005 02:47 PM |
| error 16398 with NT service "localsystem" | arsenic77 | MapPoint 2006/2009 Discussion | 3 | 06-19-2003 11:37 AM |