patrick

patrick

  • NA
  • 397
  • 0

Convert line of code from VB to C#

Jan 24 2011 9:27 PM

Hello,
I was having a problem with mappoint, and at the following link I encountered someone else having the same problem as I was.  http://www.mapforums.com/sitemap/t-2318.html
The post:
actually the error is generated by the timeout expiring but not releasing the control thread back your app in a timely manner..

this can be resolved with any COM based object in VB by adding the line

App.OleRequestPendingTimeout = TimeInMiliseconds

to the length needed for the query....
Solved my problem, except that I cannot find the C# equivalent for App.OleRequestPendingTimeout = TimeInMiliseconds.  What would this be?  Also, what is the default and what do you recommend I set it to?
 
Thank you.

Answers (7)