I am writing a very simple application to play video. This is my code thus far...and I cannot figure out why my emulator keeps crashing:
I originally had developed this in QMainWindow but there was no video. So I did some research and turns out that QDialog could play the file.
I can hear the audio and see the video, but I receive the following errors:
"SharedPointer: pointer 0xa2d15f0 already has reference counting
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function."
If I try to port this code to my N8 then I receive the following error:
Executable file: 11115 2010-12-21T22:31:27 C:\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\udeb\videoExample.exe
Package: 10732 2010-12-21T22:31:28 C:\Users\zubin\Desktop\RajaniWorkingArea\videoExample\videoExample.sis
Deploying application to 'Nokia N8-00 USB (COM7)'...
Copying installation file...
Application running with pid 1277.
ADEV 1292999308 1280 Setting callback granulatiry percentage to 40
Process 1277, thread 1280 stopped at 0x7c28b5e0: A data abort exception has occurred.
Here is the code:
I also read somewhere that I should add:
Dialog::Dialog(QWidget *parent) :
Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
connect(player, SIGNAL(finished()), player, SLOT(deleteLater()));
TARGET.CAPABILITY += "NetworkServices ReadDeviceData in my .pro file, which I did.
I also added QT += phonon
None of the above seems to solve the problem. Please let me know how to fix this.