Solved

Passing "dead" callbacks via DCOM, and timeouts

Posted on 1999-01-21
4
344 Views
Last Modified: 2010-05-03
I'm using VB6 and NT4 SP3 and DCOM.
I have a single threaded server assigning jobs to a multi-threaded worker. The server passes callbacks to the worker. If this owner of this callback object (a client on another machine, passed via DCOM to the server) has been terminated then the server waits 100 seconds whilst trying to pass the callback to the worker, and then times out.

Is it possible to check if the callback is valid, instead of having to wait for 100 seconds for the timeout? Or is it possible to change this timeout value to something smaller?

Thanks in advance,
Fred Forsyth, Software Engineer.
0
Comment
Question by:fredforsyth
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
covington earned 100 total points
ID: 1469903
Try setting App.OleServerBusyTimeout to a value of 1000. The published default (in help) is 10,000, but I think it's really 100,000.

0
 

Author Comment

by:fredforsyth
ID: 1469904
I tried the above and it did indeed reduce the wait from 100 seconds, but I couldn't get it to go below 35 seconds. If this is a problem with the OS then I will accept your answer, but is it possible to get a smaller wait?
0
 
LVL 3

Expert Comment

by:covington
ID: 1469905
I haved used this to reduce the timeout below 30 seconds. The important thing to remember is that the delay applies from the time that the client recognizes that the server is busy, not from the inital time that the call is made. Does this make sense?

Other than that cryptic piece of information, I'm afraid that I don't have much more to offer.


0
 

Author Comment

by:fredforsyth
ID: 1469906
Thanks for the help.
Fred.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…

776 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