Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

time out on createobject

Posted on 2000-02-15
6
Medium Priority
?
955 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 300 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

636 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