spacer1
spacer2 1_1 1_2
2_1
 Subscribe
 The MP2K Update!
 
 
 
 Magazine
Front Cover
What's New
Articles
News
Sample Data
Gallery
Advertise
About
 Features
MapPoint 2013
Press Releases
MapPoint Forums
Companies
Link to MP2Kmag
Wish List
MapPoint Trial
Authors
 Earlier Content
Past News Items
Past What's New Announcements
 Sponsors
 Order

MapPoint 2013

Programming MapPoint in .NET

MapPoint Book

  Spatial Community
SVG Tutorials
MapPoint

Map Visitors

  MAPPOINT Q & A  

Top | Post New Question | Read All | MP2K Asks Microsoft

479 David - November 5, 2001

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?

Answer:

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.

Post New Answer / Follow-up


Google
 
MP2Kmag Internet


 Recent Discussion
 Resources


Want Your Site To Appear Here?

   © 1999-2012 MP2K. Questions and comments to: website@mp2kmag.com
  Microsoft and MapPoint 2002/2004/2006/2009/2010/2011/2013 are either trademarks or registered trademarks of Microsoft.