Focus lost on dispose

.NET Edition of the F-IN-BOX
seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Focus lost on dispose

Postby seesharp » Thu Mar 08, 2007 3:29 pm

Hi

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

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Mar 09, 2007 8:40 am

Could you please send me a small project for testing to support (at) f-in-box.com ? I haven't ideas right now...
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

seesharp
Posts: 82
Joined: Mon Oct 30, 2006 1:34 pm

Postby seesharp » Fri Mar 09, 2007 8:46 am

Yes,

I'll prepare it asap. My solution concerning the ExternalInterface / AccessViolation problem might be 'strange' anyway but I couldn't find another yet.

Best regards

Alex


Return to “.NET Edition”

Who is online

Users browsing this forum: No registered users and 12 guests

cron