MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




"Catastrophic" Error?

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. ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion > Development

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-16-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
"Catastrophic" Error?

Started getting a really weird error today. This is a VB6 add-in. Error occurs with MapPoint 2006, but not 2004. I've tried completely uninstalling and re-installing MapPoint 2006.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 09-16-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 09-16-2008
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
catastrophic, error


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 11:57 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55