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

When I call and open up MapPoint from VB as a sepa....

This is a discussion on When I call and open up MapPoint from VB as a sepa.... within the MapPoint Desktop Discussion forums, part of the Map Forums category; When I call and open up MapPoint from VB as a separate application and render a map, I occasionally get ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    When I call and open up MapPoint from VB as a separate application and render a map, I occasionally get a 'Component Request Pending' and Switch To/Retry buttons. Is there a way to trap this in a more user-friendly method?

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    You should add the following two lines of code to your Form_Load:



    App.OleRequestPendingTimeout = 10 * 5000


    App.OleServerBusyTimeout = 10 * 10000



    This first line returns/sets the number of milliseconds automation requests will run before user actions trigger a 'busy' message. The second line returns/sets the number of milliseconds during which an automation request will continue to be retried. Slower machines get caught in the cross-process messaging between the control and the MapPoint engine that is running in a separate process. Adjusting this timeout parameter should have no bad side effects and just allows for normal inter-process messages to have time to complete in the background. You could play with the setting up or down but I picked 10 (equals 100 seconds) as a safe number.





Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Unable to open MapPoint 2004
    By carlos_pr21 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-28-2006, 01:08 PM
  2. Mappoint exception "Call was rejected by callee"
    By jliao81 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-03-2005, 07:53 AM
  3. Help Please.....Mappoint VB6 Save Map/ Open Map / Pushpins
    By questphil in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-15-2004, 10:16 AM
  4. NullPointerException for getting Call Object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-26-2004, 02:20 AM
  5. How to call add-in from vb
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 12-23-2003, 01:56 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