Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

error 4014

This is a discussion on error 4014 within the MapPoint Desktop 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 ...

  1. #1
    SimonPearse is offline 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?

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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;
                }

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    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

  4. #4
    SimonPearse is offline 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!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. synchronous error
    By Wilfried in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 06-09-2005, 05:27 AM
  2. Mappoint Error
    By Mudrover in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 01-20-2005, 03:59 PM
  3. About ERROR 4-40028-1. Error or Bug ?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 12
    Last Post: 01-11-2005, 10:32 AM
  4. I get this following error
    By ananthdeena in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-01-2005, 03:46 AM
  5. Runtime Error 462
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-02-2004, 05:07 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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