MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




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 2006/2009 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 ...


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 11-05-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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?
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 11-05-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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.




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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to open MapPoint 2004 carlos_pr21 MapPoint 2006/2009 Discussion 1 03-28-2006 01:08 PM
Mappoint exception "Call was rejected by callee" jliao81 MapPoint 2006/2009 Discussion 1 06-03-2005 07:53 AM
Help Please.....Mappoint VB6 Save Map/ Open Map / Pushpins questphil MapPoint 2006/2009 Discussion 0 11-15-2004 10:16 AM
NullPointerException for getting Call Object Anonymous MapPoint 2006/2009 Discussion 0 04-26-2004 02:20 AM
How to call add-in from vb Anonymous MapPoint 2006/2009 Discussion 0 12-23-2003 01:56 AM


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

Cheap flights Lanzarote
Lanzarote has plenty of sunshine and plenty of sand. The only piece missing is you! Holiday Hypermarket books cheap flights to Lanzarote.

Portugal Holidays
Find and book Portugal Holidays with Travel Counsellors. Holiday destinations around the world including Portugal.

Flights Canada
Our search results will show you a selection of airlines, travel agents and tour operators offering cheap flights to Canada. See for yourself who has the cheapest deals.

Holidays to Dominican Republic
Holidays to Dominican Republic offer a wealth of natural beauty and magnificent views. Come alive in the splendor of the Dominican Republic!

Cheap Cyprus Holidays
Finding cheap Cyprus holidays can be difficult unless you know where to look and where to book. With ulookubook.com you can conduct a simple search to find the latest holiday deals to your particular destination.

All inclusive holiday
Travel.co.uk is a travel comparison service which makes it easy to search and find your all inclusive holiday.

Goa Holidays
Enjoy the warm and sunny climate of Western India. Visit On The Beach for information on Goa holidays.


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