Re: WindowsForms, ActiveX, Interop, GC by Guerrero
Guerrero
Wed Jun 14 14:38:01 CDT 2006
I tried the ReleaseComObject, but doesn't work. I call firts Dispose then
ReleaseComObject and then GC.SupressFinalizer. What i will do?. Thanks.
"Dmytro Lapshyn [MVP]" wrote:
> Hi,
>
> First of all, try the plain old Dispose method on the AxHost-derived
> controls. It should release the hosted ActiveX as well (while GC.Collect
> doesn't guarantee this, AFAIR).
>
> If this doesn't help, try calling Marshal.ReleaseComObject on the AxHost's
> GetOcx() return value, and then call Dispose as usual.
>
> "Guerrero" <Guerrero@discussions.microsoft.com> wrote in message
> news:C3D8E7B1-7E93-4FB9-96A6-2736E66F58EB@microsoft.com...
> > Hi all, i develop app in windows forms, in C#. I used WindowsForms yo host
> > ActiveX like, Flash, QuickTime, Quest3D, and so on. But i have a problem,
> > because when flash AxHost control uses lot of memory and i manually whant
> > to
> > dispose and delete this object, the GC collector doesnt's recollect all
> > the
> > memory. So my question is: Is there other way to Dispose a AxHostControl,
> > o
> > WindowsForm to recover all the memory. Thanxs.
>
>