I have the following (complicated) situation:
1. swf loaded: f_in_box__control flash holds my .swf
2. to load 2. .swf -->
Code: Select all
tmpFlash = flash; //save a new reference
flash = new f_in_box__control .... //create a new instance
disposeTimer.Start(); //start a timer to dispose the old instance
Now as soon as the dispose timer ticks, the tmpFlash is disposed.
Like this I can reload a f_in_box__control instance AND dispose the previous one. But, as soon as tmpFlash.Dispose() is called, my application looses focus. And if I use:
Code: Select all
tmpFlash.Dispose();
GC.Collect();
this.Activate();
The f_in_box__control isn't always disposed and memory usage increases by 8 MB each round.
Do you have any idea how to solve that issue ?
Best Regards
Alex