Solved

time out on createobject

Posted on 2000-02-15
6
953 Views
Last Modified: 2008-02-01
Is there a time out on createobject or cocreateinstance call?

If yes, how do I change the time out parameter.

I have a case that vb initiate my object using createobject. However, my object requires at least 4 min to initialize. That will cause the createobject call some kind of timeout.

?->
0
Comment
Question by:EDDYKT
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 2

Accepted Solution

by:
p_biggelaar earned 100 total points
ID: 2523082
I'm afraid I only have a partial answer. Yes there is something like a time-out. It also depends on what you try to do, but you can count on a timout after about 2 minutes. Unfortunately I can't tell you what you can do about it.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 2523137
Have you check these properties:
    App.OleServerBusyTimeout
    App.OleRequestPendingTimeout
0
 
LVL 26

Author Comment

by:EDDYKT
ID: 2523175
To emoreau,

I did but those doesn't seem to be it.
It is because by default OLeserverbusytimeout is 10 second and olerequestpendingtimeout is 5 second.

the timeout on createobject is at least 90 second.

?->
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:kskourtis
ID: 2524463
You can set either of these timeouts to very large values, because they are stored as Longs. For example, 86,400,000 milliseconds is a day, which is equivalent to an infinite timeout.

Plus you can have VB raise an error, which you can handle in your code.
Check out for details
http://support.microsoft.com/support/kb/articles/Q138/0/66.asp
0
 
LVL 26

Author Comment

by:EDDYKT
ID: 2524625
Kskourtis,

I don't think this is what I want.

I did try this values, but there is no effect on createobject.


?->
0
 
LVL 26

Author Comment

by:EDDYKT
ID: 2580591
?-<
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question