Page 1 of 1

Exception with Flash 10.1 Beta

Posted: Thu Nov 19, 2009 3:54 pm
by sabachkin
f-in-box DLL fails with Invalid Floating Point Exception when you create the ActiveX Flash class object.

Steps to reproduce:
0. Uninstall any ofl currently installed version of Flash ActiveX
1. Install Flash 10.1 ActiveX Beta from http://labs.adobe.com/downloads/flashplayer10.html
2. Try to use ANY F-IN-BOX DLL application, for example, ya.online from http://online.yandex.ru/

Many people are getting the same error, for example you can read a comment about it at http://habrahabr.ru/company/yandex/blog/75650/ (Russian only)

Kinda severe error, has Adobe changed something in the new Flash version regarding creating and instantiating OLE controls? I've just tried to just create a flash object in a empty Delphi project, only getting the same exception exactly at TShockWaveFlash.Create line.
But Internet Explorer just loads and uses Flash 10.1 without any problem!

I'll try to look into it later today with the debugger to know the exact location of the problem.

Any suggestions guys?

Posted: Thu Nov 19, 2009 4:16 pm
by sabachkin
Ok. some more info:
Looks like it's not a Flash or F-IN-BOX problem, but a Delphi one!

Compiled examples from F-IN-BOX DLL run just fine with 10.1 Beta!

But compiled examples from F-IN-BOX DELPHI always fail to create the object with the mentioned exception!
Download these and try http://www.f-in-box.com/download/FlashP ... AppExe.zip

So this topic can be moved to a Delphi section I think

Posted: Fri Nov 20, 2009 12:46 pm
by Softanics
Thank you for the information.

Yes, we've reproduced the problem. We have already fixed it and I'm building the updated version right now.

Thank you.

Posted: Fri Nov 20, 2009 2:59 pm
by Softanics
I've just uploaded updated version, could you please check it?

Thank you.

Posted: Fri Nov 20, 2009 3:29 pm
by sabachkin
Yes, compiled demos now run nice. So the problem is fully fixed! Thanks a lot!

But, we often need to use Flash ActiveX natively, without wrapping it in F-IN-BOX. I've had no time yet to check the problem in the debugger myself, and you seem to already get the solution for this.

So could you please share details about how you managed to fix this? What should I change to correctly load Flash 10.1 in native Delphi code (Without wrapping it in F-IN-BOX?)

This is very important for my work and I'll appreciate your help!

Thanks a lot.

Posted: Fri Dec 11, 2009 2:06 am
by duhast
when use Flash 10.1 ActiveX and use TransparentFlashPlayerControl to load a swf movie,the rate of movie is so quickly.

Posted: Fri Dec 11, 2009 6:17 am
by Softanics
duhast wrote:when use Flash 10.1 ActiveX and use TransparentFlashPlayerControl to load a swf movie,the rate of movie is so quickly.


What if to create a simple HTML page with this movie, set wmode = "transparent" and then load the page into Internet Explorer, the same problem?

Thank you.

Posted: Fri Dec 11, 2009 6:54 am
by duhast
What if to create a simple HTML page with this movie, set wmode = "transparent" and then load the page into Internet Explorer, the same problem?


there is no problem in Internet Explorer,see this demo
http://rapidshare.com/files/319268787/f-in-box.7z.html

Posted: Sat Dec 12, 2009 10:40 am
by Softanics
duhast wrote:there is no problem in Internet Explorer,see this demo
http://rapidshare.com/files/319268787/f-in-box.7z.html


You're right.

What's strange is that if I create a simple MFC dialog-based application in Visual C++ and put wmode = transparent, it works also very fast.

But it works well in IE...