LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Shockwave Flash ActiveX control

Hi,
 
I'm using the example cviflashplayer.zip (http://zone.ni.com/devzone/cda/epd/p/id/4092) and having the following problems:
 
* when I tried to do a "fine-move" (re-position) the SHOCKWAVEFLASH control (in the uir editor) using Shift+arrows, the whole CVI program would hang, and I would have to use Task Manager to shut down LabWindows/CVI.
 
* when I tried to re-order the tab (under Edit/Tab Order...), the tab order for this SHOCKWAVEFLASH control can not be changed directly.
 
* when I tried to pre-load a movie (by specifying the Movie property), the whole LabWindows/CVI would sometimes shut down on its own.
 
Does anyone have the same problem, or am I doing something wrong?  Also, does anyone know where I can find the descriptions for the its properties that lists inside the Properties Sheet sub-window.
 
TIA
 
0 Kudos
Message 1 of 11
(6,889 Views)
Opps...  I forgot to mention that I'm using LabWindows/CVI version 8.5
0 Kudos
Message 2 of 11
(6,888 Views)
Hi TIA,

I have been testing the behavior that you reported.  I was unable to reproduce some of the behavior that you reported.  I was able do a "fine-move" with the Shift+arrow keys without a crash/hang in CVI 8.5.  I was able to pre-load and automatically start a movie without a crash/hang.  I used the following code:

GetObjHandleFromActiveXCtrl (panelHandle, PANEL_SHOCKWAVEFLASH, &flashHandle);
ShockwaveFlashObjects_IShockwaveFlashSetMovie (flashHandle, NULL,    "C:\\cviflashplayer\\Demo.swf");
SetCtrlAttribute (panelHandle, PANEL_PLAYBUTTON, ATTR_DIMMED, 0);
ShockwaveFlashObjects_IShockwaveFlashPlay (flashHandle, NULL);

I was able to reproduce the behavior you reported when attempting to assign a tab order to the control.  I will file a Corrective Action Report on this issue.  Thank you for bring this to our attention.

I am not sure what the cause of the crash/hang is on your machine.  What version of Macromedia Shockwave Flash Player are you using?  I had version 9.0 and also tried updating my machine to the newest version of 11.0 and still have no problems.  Can you try updating to the newest version?  It is located here.


Message Edited by J_Stape on 06-09-2008 05:15 PM
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 3 of 11
(6,849 Views)

Hi Jessica,

Thank you for looking into this problem.  Could you please try the following to see if you could re-produce the "hanging" problem:

1) Open up the FlashPayer.prj from inside LabWindows/CVI

2) Double click on FlashPlayer.uir to open it up.

3) Select the SHOCKWAVEFLASH ActiveX control.

4) Hold down the Shift+left arrow for a few seconds.

5) Hold down the Shift+down arrow for a few seconds.

6) Repeat (4) and (5) a couple times.

7) The Labwindows/CVI may hang up at this point.

😎 If not, save the new .uir file.  The Labwindows/CVI may hang up at this point.

9) If not, try to close the uir editor window.  A LabWindows/CVI message will pop-up with the following display:

"Unrecoverable Internal Error at xxxx:yyyyyyyy"

"LabWindows/CVI will be aborted."

FYI, I have the latest version of Macromedia Shockwave Flash Player installed.

 

0 Kudos
Message 4 of 11
(6,838 Views)
Hi TIA,

I followed your steps on two different machines, and have not been able to reproduce this behavior.  Do you have another machine that you could try this on and see if you can reproduce the error?
Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 5 of 11
(6,817 Views)
Hi Jessica,
 
That's really strange.  I just tried it on my laptop and it hangs every time at step (7).  FYI, my LabWindows/CVI version number is 8.5.0 (279), and my Adobe Shockwave Flash Player (flash9f.ocx) version number is 9.0.124.0.  Are they the same as yours?
0 Kudos
Message 6 of 11
(6,807 Views)
Hi TIA,

This behavior should be generic to all ActiveX controls as you are not at this point using the Adobe Shockwave Flash Player functionality.  Can you try creating a new ActiveX Control in a new project and see if you can reproduce the error there?




Jessica
National Instruments
Product Support Engineer
0 Kudos
Message 7 of 11
(6,777 Views)

Hi Jessica,

I uninstalled and then re-installed LabWindows/CVI 8.5.1 and the LabWindows/CVI hasn't yet hang up on me Smiley Happy  However, I have a new error:  when I tried to Create Release Executable (of the FlashPlayer example), I got the following errors:

 4 Project link errors
  Undefined symbol '___CompiledDebuggingLevel' referenced in "d:\national instruments\cvi85\bin\Msvc\cvistart.lib".
  Undefined symbol '___PtrInfoFixupTable' referenced in "d:\national instruments\cvi85\bin\Msvc\cvistart.lib".
  Undefined symbol '___CVI_Sections' referenced in "d:\national instruments\cvi85\bin\Msvc\cvistart.lib".
  Undefined symbol '___UFRNameTable' referenced in "d:\national instruments\cvi85\bin\Msvc\cvistart.lib".

Could you please tell me what I did wrong?  FYI, I did not have this problem under Debug mode.

0 Kudos
Message 8 of 11
(6,766 Views)
Hi nqn827,

Well that's weird as none of those symbols are new for 8.5.1 and they and they should only be required by the linker when you're building a debug executable.  I would suggest marking the project for compilation and then building again. If that doesn't work, try completely removing the entire cvibuild.* folder, and then try to build again.
 
Also, if you can remember what steps you took to get into that state, it would be helfpul for us to know so we can fix that problem.

Let us know what happens.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 9 of 11
(6,737 Views)

Hi Jonathan,

I deleted the cvibuild.* folder as you suggested, and it SOLVED the problem Smiley Happy.  I can now build either the debug or release version without any the error message window.  Thank you.

As far as I can remember, I was only trying to see if I could make the LabWindows/CVI program to hang by just moving the Shockwave Flash Active X control around (with Shift+arrow keys) which was the problem that I had in the first place.  When the program did not hang, I added a couple more Shockwave Flash Active X controls and tried again.  I ran the example program (many times) in debugging mode during this time.  Finally, I decided to create the release executable, and here came the error message window Smiley Mad  I'll try to see if I can make the error message window appears again, and let you know later.

BTW, could you please tell me when you will be able to fix the problem of assigning a tab order to this Active X control?

0 Kudos
Message 10 of 11
(6,718 Views)