Solved

ATL COM project, function call timeout.

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

Independent Software Vendors: 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

Suggested Solutions

For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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…

739 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