Solved

Passing "dead" callbacks via DCOM, and timeouts

Posted on 1999-01-21
4
341 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 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

18 Experts available now in Live!

Get 1:1 Help Now