Home All Groups Group Topic Archive Search About

Pattern for handling method-call-hang ??

Author
17 Feb 2006 8:49 AM
Søren M. Olesen
Hi

I'm creating an application which calls another application using COM,
however sometimge this other application hangs, and my call never returns or
fail.

Is there a god pattern for handling thise kind of situations?? What I'd like
is something like a timeout exception, bt how d I implement that, when the
call doesn't support it by itself.

TIA

Søren

Author
17 Feb 2006 9:59 AM
Carlos J. Quintero [VB MVP]
See:

Including Asynchronous Calls
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconasynchronousprogramming.asp

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com


Show quoteHide quote
"Søren M. Olesen" <smole***@hotmail.com> escribió en el mensaje
news:%23CS$u95MGHA.2560@TK2MSFTNGP09.phx.gbl...
> Hi
>
> I'm creating an application which calls another application using COM,
> however sometimge this other application hangs, and my call never returns
> or fail.
>
> Is there a god pattern for handling thise kind of situations?? What I'd
> like is something like a timeout exception, bt how d I implement that,
> when the call doesn't support it by itself.
>
> TIA
>
> Søren
>
>
>