MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint and VFP

This is a discussion on Mappoint and VFP within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; does anybody help me to use the mappoint control in a VFP form. When close the form I cannot close ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Mappoint and VFP

does anybody help me to use the mappoint control in a VFP form.
When close the form I cannot close VFP an it appear the message cannot quit VFP
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 04-22-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
Can you deinstantiate or destroy the MapPoint object during the Form Close event?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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 04-23-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
PMFJI,
we had a similar problem and found that if you instantiate the Mappoint object and don't use it , it sometimes doesn't release properly resulting in the "cannot quit" message.
Trevor
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 04-23-2004
Junior Member
White Belt
 
Join Date: Apr 2004
Posts: 1
disperation... Mappoint and VFP

Quote:
Originally Posted by paradigm
PMFJI,
we had a similar problem and found that if you instantiate the Mappoint object and don't use it , it sometimes doesn't release properly resulting in the "cannot quit" message.
Trevor
But I use the control; I close the map and I remove the object in the container...
... the result its the same "Cannot quit VFP"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 04-23-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,322
Blog Entries: 1
There is a demo on using MapPoint and Foxpro:
http://www.mp2kmag.com/a43--charlie.....mappoint.html
Perhaps there are some pointers in there?

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-02-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Re: disperation... Mappoint and VFP

Quote:
Originally Posted by palin
Quote:
Originally Posted by paradigm
PMFJI,
we had a similar problem and found that if you instantiate the Mappoint object and don't use it , it sometimes doesn't release properly resulting in the "cannot quit" message.
Trevor
But I use the control; I close the map and I remove the object in the container...
... the result its the same "Cannot quit VFP"


Did you ever see a solution for this? I get the same problem when I use the Mappoint ActiveX control (but not using automation, which is what the example by Fowler Software uses, so it does not apply).

Lew
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 12-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
MapPoint and VFP

We use MapPoint extensively in our VFP commercial applications and have found that the "cannot quit message" is usually related to object reference issues of one kind or another. We have also noted that in some cases you will need to issue "THIS.activemap.saved = .T." before the close of the map in order for it to release properly. You may also need to play with the VFP.AUTOYIELD parameter setting (depending on what you're doing).
Hope This Helps
Trevor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 12-06-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Try putting the command

ON SHUTDOWN QUIT

near the top of the program code
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


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


All times are GMT -5. The time now is 01:31 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

Flight Deals
Book a holiday bargain online. Check out the latest fantastic flight deals. Holiday Hypermarket works with the leading Tour Operators to find the best flight deals available.

Flights to Cyprus
Find cheap flights to Cyprus on Travel Counsellors. A personal Travel Counsellor can help you plan flights and find accommodation in Cyprus.

Cape Town Cheap Flights
Thinking about visiting Cape Town. Cheap flights are hard to find unless you visit dealchecker.co.uk. We'll shop around so you don't have to.

Jamaica Holidays
Jamaica holidays give you the chance to enjoy the vibrant cultural heritage and wonderful laid back atmosphere of the Caribbean. Book here!

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Holidays Package
Make use of our service at Travel.co.uk to compare holidays. We can find you a package deal that will delight you.

Cheap holidays to Portugal
Enjoy a spectacular country at a fraction of the cost. Find information on cheap holidays to Portugal at On The Beach.


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