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

Mappoint and VFP

This is a discussion on Mappoint and VFP within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Can you deinstantiate or destroy the MapPoint object during the Form Close event?

    Eric
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    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

  4. #4
    palin is offline 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"

  5. #5
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    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
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  7. #7
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

  8. #8
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Try putting the command

    ON SHUTDOWN QUIT

    near the top of the program code

Thread Information

Users Browsing this Thread

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

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