Solved

ATL COM project, function call timeout.

Posted on 1998-08-09
2
321 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
[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
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

691 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