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 2 of 2

Illegal Error

This is a discussion on Illegal Error within the MapPoint Desktop Discussion forums, part of the Map Forums category; Trying to make an exit button for a mappoint/VB.net appbut the code: Code: Dim objmap As MapPoint.Map objmap = AxMappointControl1.ActiveMap ...

  1. #1
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44

    Illegal Error

    Trying to make an exit button for a mappoint/VB.net appbut the code:
    Code:
    Dim objmap As MapPoint.Map
            objmap = AxMappointControl1.ActiveMap
            objmap.SaveAs("C:\Documents and Settings\Dave\My Documents\map.ptm", MapPoint.GeoSaveFormat.geoFormatMap, False)
            objmap.Saved = True
    
            End
    Brings up a MS error report window. The code works fine if I write and run it in VB6, but apparently I need to do it in .net and disabling error reporting isn't really a valid solution!!

    I know its nothing to do with the saving cos it does it with just the end command. Do i need to close the map somehow prior to exiting the program?

    any help greatly appreciated

    Cheers

    M

  2. #2
    Matrices is offline Member Yellow Belt
    Join Date
    Sep 2003
    Posts
    44
    aha!! that would be the closemap() functin then!!

    Just ignore me and I'll hide in a corner

    M

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. error 4014
    By SimonPearse in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-17-2005, 11:47 AM
  4. 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
  5. I get this following error
    By ananthdeena in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-01-2005, 03:46 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 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96