Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Fri, 2 Feb 2007 21:31:32 +0200,    group: microsoft.public.platformsdk.com_ole        back       


canceling asynchronous call   
Hello,

My server interface is marked as asynchronous (async_uuid) in midl file. 
Server handles method calls synchronously, and client uses Begin_* and 
Finish_* to achieve non-blocking calls.
This interface has method:

IMyInterface::CreateSomeObj([out] IUnknown** ppUnk);

What happens if client cancels this call with ICancelMethodCalls->Cancel(0), 
and then Finish_ while call is still pending? Server does not handle cancel 
requests, so it will proceed until object is created, then will try to 
return it to client.
Will this returned object be freed automatically?

Thanks in advance,
Michael
date: Fri, 2 Feb 2007 21:31:32 +0200   author:   Michael

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us