MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Strange behavior from MapPoint 2004

This is a discussion on Strange behavior from MapPoint 2004 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am working on my C# destructor for a window with a MapPoint control, and have found inconsistent behavior when ...


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 (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 02-11-2008
Senior Member
Green Belt
 
Join Date: Jul 2005
Posts: 105
Strange behavior from MapPoint 2004

I am working on my C# destructor for a window with a MapPoint control, and have found inconsistent behavior when using the Saved property.

The first code snippet works to suppress the "Save Map" question. The other one, oddly, does not work.

This works:

axMappointControl2.ActiveMap.Saved = true;
axMappointControl2.Dispose();
axMappointControl2 = null;

This DOES NOT suppress the "Save Map" question:

MapPoint.Map mpMap = axMappointControl2.ActiveMap;
mpMap.Saved = true;
axMappointControl2.Dispose();
axMappointControl2 = null;

Can anyone understand why this is? It create new questions for me which I can not answer about variable and what they are actually referencing.

I'd be happy to hear your comments.

Bob
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 02-15-2008
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Re: Strange behavior from MapPoint 2004

Hi,

Are you sure? I just tryed this (MP is the activeX control) in my formClosing event:
Code:
MP.ActiveMap.Saved = true;
and replaced by this:
Code:
MapPoint.Map map = MP.ActiveMap;
map.Saved = true;
Both are working, and yes in both test I add a pushpin to popup the dialog if not saved.
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
behavior, mappoint 2004, strange


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/strange-behavior-mappoint-2004-a-7112.html

Posted By For Type Date
The Magazine for MapPoint - MP2K Magazine This thread Refback 02-11-2008 08:34 PM

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
Strange MapPoint exception BobFromBoston MapPoint 2006/2009 Discussion 1 02-11-2008 09:03 AM
Trying to suppress MapPoint's default behavior BobFromBoston MapPoint 2006/2009 Discussion 1 02-04-2006 05:34 AM
Strange behaviour with square brackets. fergdeff MapPoint 2006/2009 Discussion 4 01-07-2006 04:27 AM
GetPictureFromObject returns strange maps cd4000 MapPoint 2006/2009 Discussion 0 08-30-2004 07:12 PM
ActiveX Control Mouse Behavior lazarus MapPoint 2006/2009 Discussion 0 02-24-2004 02:04 PM


All times are GMT -5. The time now is 09:25 PM.


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 55