Solved

time out on createobject

Posted on 2000-02-15
6
946 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
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 69

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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now