Error when opening compiled matlab file with video content

Hello,
I have compiled a script file which uses an activeX WMP item to display a video. However, when I double click the .EXE, I get this message when the GUI is opened:
"Serialization of COM object failed. 'Windows Media Player' could not be restored to its previous state.
Make sure AAA_activex1 is in the same directory as your GUI."
What does that mean and how can I solve this error?
Thanks!

Answers (2)

I have solved this error! I forgot to include the activeX file into the additional files before compiling the whole thing, stupid mistake.
However, another issue arises now because I am using a pushbutton to load a .MAT file and another one to load that .AVI file. The problem is that if I do not include .MAT and .AVI files during the compiling, I hear the error bip signal when I load them from the .EXE file created. As these files are user dependent, I cannot include them during the compiling process!
Finally, if I do include 2 example files during the compiling process and try to play the video, it just does not work. My computer is an i7 4770K so power is not a limiting factor, but I have the impression that the app is just too slow (eventho it works fine from MATLAB directly).
Any idea?
Matt
Matt on 1 Feb 2015
Edited: Matt on 1 Feb 2015
Nobody to help?
How comes the OPEN function (for a .MAT file) in my script works fine when in MATLAB, but not after the script has been compiled?

Asked:

on 11 Dec 2014

Edited:

on 1 Feb 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!