MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Illegal Error

This is a discussion on Illegal Error within the MapPoint 2006/2009 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 ...


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

Today's Posts Twitter Feed 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-29-2003
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
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-29-2003
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
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, illegal


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 04:27 AM
Mappoint Error Mudrover MapPoint 2006/2009 Discussion 5 01-20-2005 02:59 PM
error 4014 SimonPearse MapPoint 2006/2009 Discussion 3 01-17-2005 10:47 AM
About ERROR 4-40028-1. Error or Bug ? Anonymous MapPoint 2006/2009 Discussion 12 01-11-2005 09:32 AM
I get this following error ananthdeena MapPoint 2006/2009 Discussion 3 01-01-2005 02:46 AM


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


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

Majorca Holiday
Enjoy a Majorca holiday at a good price when you check out the offers on UlookUbook for this popular destination!



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