MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint error

This is a discussion on Mappoint error within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using VB.NET with MapPoint 2006 or Mappoint 2004 ActiveX Control. With MapPoint 2004 when I change the pushpin ...


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

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



Click here to register

Reply

 

LinkBack (5) Thread Tools Display Modes
  5 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 03-27-2007
Junior Member
White Belt
 
Join Date: Feb 2006
Posts: 6
Mappoint error

I am using VB.NET with MapPoint 2006 or Mappoint 2004 ActiveX Control.
With MapPoint 2004 when I change the pushpin BallonState property and the Map is at max zoom level, some pushpin remain without label.
Instead, with MapPoint 2006 and Map at max zoom level, DataSet "MoveTo" method sometimes return "False".
This is not an application error infact if I modify code from:

Code:
'Load pushpin 
objPin = AxMpControl.ActiveMap.AddPushpin(objNewLoc, Contatto.Apparato.IdApparato)
'Move pushpin in my "ContattiPinSet" Dataset
objPin.MoveTo(ContattiPinSet)
to:

Code:
'Load pushpin 
objPin = AxMpControl.ActiveMap.AddPushpin(objNewLoc, Contatto.Apparato.IdApparato)
'Move pushpin in my "ContattiPinSet" Dataset
if objPin.MoveTo(ContattiPinSet) = false then objPin.MoveTo(ContattiPinSet)
the second attempt works.

Anyone have the same error?
Thanks
Matteo
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 03-31-2007
Senior Member
Green Belt
 
Join Date: Sep 2005
Location: Marshall, Michigan
Posts: 126
Re: Mappoint error

I've seen this error a couple times.

Seems like the MoveTo method requires that the pushpin object be fully-drawn before it can be moved to the destination dataset. Probably attributable to an underlying threading issue.

I didn't find a fix for it, but simply moved the MoveTo method to a different subroutine which was called a moment later.

HTH
Paul
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 04-03-2007
Junior Member
White Belt
 
Join Date: Feb 2006
Posts: 6
Re: Mappoint error

Thanks for reply Paul.
I found another "MoveTo" method error.
Sometimes this metod return "True" and Puship Parent become "ContattiPinSet" Dataset but puship remain in "Symbol" Dataset infact
"AxMpControl.ActiveMap.Datasets(1).RecordCount = 1".
I'm waiting for MapPoint 2006 SP1

Thanks
Matteo
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
error, mappoint


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/mappoint-error-5778.html

Posted By For Type Date
Working With Excel and MapPoint - MP2K Magazine This thread Refback 03-29-2007 06:21 AM
MapPoint Gets New General Manager - MapPoint News - MP2K Magazine This thread Refback 03-29-2007 02:43 AM
An API to Control MapPoint 2006 GPS Features - Part I of II - MapPoint Articles - MP2K Magazine This thread Refback 03-27-2007 10:44 AM
Using MapPoint 2001 from C++ - the 'FindAddress' Problem - MapPoint Articles - MP2K Magazine This thread Refback 03-27-2007 10:43 AM
The Magazine for MapPoint - MP2K Magazine This thread Refback 03-27-2007 10:10 AM

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
Run-time error 2147467259 80004005 automation error ThomasB MapPoint 2006/2009 Discussion 2 02-27-2007 12:41 PM
Mappoint Error Mudrover MapPoint 2006/2009 Discussion 5 01-20-2005 03:59 PM
About ERROR 4-40028-1. Error or Bug ? Anonymous MapPoint 2006/2009 Discussion 12 01-11-2005 10:32 AM
Mappoint OCX error ljk25 MapPoint 2006/2009 Discussion 0 06-29-2004 04:25 AM
Help!! Error running mappoint gag MapPoint 2006/2009 Discussion 1 01-27-2004 11:45 PM


All times are GMT -5. The time now is 09:51 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, 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