Solved

ATL COM project, function call timeout.

Posted on 1998-08-09
2
315 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
ID: 1320465
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
ID: 1320466
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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
either24  challenge 19 105
Problem to event 3 112
.NET tools for adding thread safety to a web app? 3 56
Please explain the parts of these 2 LINQ expressions 3 80
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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…

735 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