Page 2 of 3

Posted: Fri Jun 17, 2011 5:14 am
by Marsianin
Hm, may be there is something else but I'm getting error from Flash10o.ocx...
Maybe some OnClick event produces it?
What TRichViewEdit events should fire when I click some object like this flash one?

Posted: Fri Jun 17, 2011 4:14 pm
by Sergey Tkachenko
TRichViewEdit does not assign any events of inserted controls.

Try reproducing this error by placing TShockWaveFlash on a form.
May be there is something wrong with your installation of flash?

Posted: Fri Jun 17, 2011 11:03 pm
by Marsianin
I dont think there is a problem with installation. Because inserted video works fine.
Anyway I will try to run it on other PC and in other project...

Posted: Fri Jun 17, 2011 11:16 pm
by Marsianin
Same problem under Windows XP SP3 (VirtualBox)

Posted: Sun Jun 19, 2011 11:50 pm
by Marsianin
I just tried to reproduce this error in your demo attached to this topic - and this problem exists here too:

Code: Select all

---------------------------
Debugger Fault Notification
---------------------------
Project C:\...\TRichView\YouTube\YouTubePlayer.exe faulted with message: 'stack overflow at 0x74f5e2d4'. Process Stopped. Use Step or Run to continue.
---------------------------
OK   
---------------------------

Code: Select all

---------------------------
Debugger Exception Notification
---------------------------
Project YouTubePlayer.exe raised exception class EInvalidOp with message 'Invalid floating point operation'.
---------------------------
Break   Continue   Help   
---------------------------

Code: Select all

---------------------------
Application Error
---------------------------
Exception EAccessViolation in module Flash10o.ocx at 003889B1.

Access violation at address 61AD89B1 in module 'Flash10o.ocx'. Write of address 00000007.

---------------------------
OK   
---------------------------

Code: Select all

---------------------------
Debugger Exception Notification
---------------------------
Project YouTubePlayer.exe raised exception class EInvalidOperation with message 'Control 'RichViewEdit1' has no parent window'.
---------------------------
Break   Continue   Help   
---------------------------

Posted: Mon Jun 20, 2011 4:17 pm
by Sergey Tkachenko
I still do not think that this error is related to TRichView.
I think it will be the same if you place this activex on a form.

Posted: Mon Jun 20, 2011 7:23 pm
by Marsianin
But compiled EXE produces same errors on other systems.

Posted: Tue Jun 21, 2011 12:40 am
by Marsianin
Maybe there is something with Delphi 2010 ActiveX implementation?
I'm using Delphi 2010 under Windows 7 x64.
Adobe Flash updated recently but as I said it produces same error on other PC's

Posted: Tue Jun 21, 2011 5:34 am
by Marsianin
Just tried on fresh Delphi XE installation - SAME PROBLEM :shock:

Posted: Wed Jun 29, 2011 7:35 am
by Marsianin
Downloaded new Flash ActiveX from Adobe. Reinstalled.
Re-imported ActiveX do Delphi and got different ShockwaveFlashObjects_TLB.pas.
Now it works fine. Was flash error. As usual in this crap.

Posted: Thu Feb 09, 2012 11:01 am
by alexandreq
Sergey,

this example is very cool.

You showed how to save it in a file, and what about into a table with DBSRichViewEdit ?

Posted: Thu Feb 09, 2012 8:24 pm
by Sergey Tkachenko
I do not think that there can be problems using this component in DB controls.
And I just tested it in TSRichViewEdit - it works (may be scaling is not perfect, but videos are played). However, if you use old version of ScaleRichView, I cannot guarantee that this control works properly. In ScaleRichView 4, we have rewritten processing of inserted controls almost completely.

Posted: Thu Feb 09, 2012 11:15 pm
by alexandreq
yes,

my doubt is how to save it in db? You gave a code that is inserted on the event RichViewEdit1SaveComponentToFile, but I am not saving the text with youtube into a file, but in db and is it the same process?

Will the code on this event work fine even being into a db?

thanks

Posted: Fri Feb 10, 2012 3:04 pm
by Sergey Tkachenko
This event is only for saving to HTML. In RVF, the component is saved and loaded without any additional code.

Posted: Mon Feb 13, 2012 8:42 pm
by miwan
You are very generous

Thank you for your efforts