MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




error 4014

This is a discussion on error 4014 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I'm using MP2004 and VB5 In code I have created a pushpin, and later want to delete it using If ...


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 Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 15
error 4014

I'm using MP2004 and VB5
In code I have created a pushpin, and later want to delete it using

If PinIsSet(Index) Then objCPushPin(Index).Delete
Ths sometimes causes error 4014.
I have been unable to find any documentation on this error, can anyone advise?
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 01-11-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,123
Hi,

I cannot find the error eather, but probably you try to delete a pushpin that is not assigned ? To be sure it is assigned always do if you delete a pushpin and you have it in an array or whatever assign null to it (I think Nothing in VB). Or find the pushpin by name (if you give a name to it at creation time).

Code:
            PushPin PP = MP.ActiveMap.FindPushpin("TheName");
            if (PP != null)
                PP.Delete();
or if it comes out an array:

Code:
            if (aPP[4] != null) {
                aPP[4].Delete();
                aPP[4] = null;
            }
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 01-11-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 918
Blog Entries: 11
I would upgrade to VB6 - you never know there might be a problem in VB5's handling of COM objects?

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
  #4 (permalink)  
Old 01-17-2005
Junior Member
Yellow Belt
 
Join Date: Jun 2004
Posts: 15
thanks for the suggestins, I do keep track of pins that have been created using an array PinIsSet so...
if PinIsSet(index) then ....

I dont want to go to vb6 if I can avoid it, I'm writing commercial software in licenced 5Pro, 6.0 is no longer availabe, and so far I have not seen any need to go to .net.... perhaps this is turning into that need, but I'd like to be certain before spending loads on new VB!
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
4014, 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
synchronous error Wilfried MapPoint 2006/2009 Discussion 4 06-09-2005 05:27 AM
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
I get this following error ananthdeena MapPoint 2006/2009 Discussion 3 01-01-2005 03:46 AM
Runtime Error 462 Anonymous MapPoint 2006/2009 Discussion 0 09-02-2004 05:07 AM


All times are GMT -5. The time now is 04:56 AM.


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