Solved

ATL COM project, function call timeout.

Posted on 1998-08-09
2
307 Views
Last Modified: 2013-11-25
I have created an ATL COM service (including MFC), free threaded. It seems to work perfectly, unless a call from a client takes a few seconds too long. In that case a dialog pops up that tells me that the server is not responding within the time limit and asks if I want to retry. Because the delay is expected I want to be able to change the timeout before the dialog pops up, and/or be able to catch the timeout myself programatically. Is this possible?

Thanks in advance.
0
Comment
Question by:stefanr
2 Comments
 

Accepted Solution

by:
jumpjam earned 100 total points
Comment Utility
We had a similar problem with the "Switch To..." error and contacted Microsoft.  You cannot catch that error. You can however deal with the problem on the server side.  Rather than performing your operations in the function that handles the COM call you can simply package up any information sent to you by the Client and post a message to a window in your server.  This allows you to pass control back to the client right away.  Your server can then process the information off line and then notify the client when the processing has been completed (if that is needed).
0
 
LVL 3

Author Comment

by:stefanr
Comment Utility
OK,then I have to make the function call delay on the client side. Not the clean solution I looked for, however.

Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

743 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

15 Experts available now in Live!

Get 1:1 Help Now