Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] How to stop an ActiveX Control in SWT properly?

oleControlSiteObject.deactivateInPlaceClient() just places the control in 
an inactive state - it does not terminate it.
oleControlSiteObject.dispose() calls 
oleControlSiteObject.deactivateInPlaceClient() and calls Release on any 
COM interfaces it has aquired.

Releasing all the COM interface should be enough to terminate the process, 
however, it is possible that some COM interfaces are not being fully 
released (i.e. to a RefCount of 0).  If you have created an OleAutomation 
object, you must dispose it when done with it.  If you have created a 
Variant (or received a Variant in an event or method invocation) you need 
to dispose the Variant.

Please provide an example to show the failure you are seeing.





"Christian Sauer" <christian.sauer@xxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx
08/25/2003 04:51 AM
Please respond to platform-swt-dev
 
        To:     <platform-swt-dev@xxxxxxxxxxx>
        cc: 
        Subject:        [platform-swt-dev] How to stop an ActiveX Control 
in SWT properly?


Hi all,

is it possible to explicitly end a win32 process which has been
started before by embedding an activeX control (e.g. Excel)?

calling 'oleControlSiteObject.dispose()' and
'oleControlSiteObject.deactivateInPlaceClient()'
does not end the process.

thanks for a hint,
chris
-------------------------------------------------------------------------
Giniality AG - Christian Sauer; Steinenberg 21, CH-4051 Basel
Phone: +41 61 226 99 66; Fax: +41 61 226 99 69;
E-Mail: xxx; WWW: http://www.giniality.com

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top