all groups > dotnet interop > august 2005 >
You're in the

dotnet interop

group:

Flash OCX Memory Leak, Or .Net Framework Memory Leak


Flash OCX Memory Leak, Or .Net Framework Memory Leak Extreme Datasets
8/6/2005 2:57:22 PM
dotnet interop: Hello All,

I have a windows application that uses the Flash OCX v7. The swf's are about
30MB and of course, memory usage goes up when each form is loaded. However,
when the form is disposed the memory is never reclaimed.

I have tried the ReleaseComObject, Dispose method of the FlashPlayer,
Disposing of the form, GC.WaitForPendingFinalizers, GC.Collect and memory
still creaps up until eventually draining the system, of 2Gigs of DDR ram.

Is there anyway to manipulate the heap or stack to force the
release/recovery of the memory or resources used by the ocx?

Re: Flash OCX Memory Leak, Or .Net Framework Memory Leak Rafael Batiati
3/23/2006 2:12:53 PM
Hi friend,

I have had the same problem to ... and until now, it's an unsolved
problem.

Work Arroud:

Create a new instace of yor form and keep it in any static field instead
create a new form. Just call Show() method.


AddThis Social Bookmark Button