sudheer168
8th October 2008, 07:46
Hi,
I have a problem with QTimer.In my application there is a main window and two Pushbuttons on main window.If I click one button a QTimer *timer will starts calling one function for every 10ms.It is declared in .h file of mainwindow as public .If I click second Pushbutton dialog will opens.Here in the dialog class I want to stop the timer which was started in mainwindow class.The code i used is shown below.
mainwin owin;
owin.timer->stop();
I wrote this code in dialog constructor.But it showing some run time error as "Unhandled exception at 0x670df703 in lpsc-jul16th.exe: 0xC0000005: Access violation reading location 0x56530908." and "There is no source code available for the current location." when i click the second Pushbutton to open the dialog.
So please help me to solve this problem.
With Regards,
Sudheer.
I have a problem with QTimer.In my application there is a main window and two Pushbuttons on main window.If I click one button a QTimer *timer will starts calling one function for every 10ms.It is declared in .h file of mainwindow as public .If I click second Pushbutton dialog will opens.Here in the dialog class I want to stop the timer which was started in mainwindow class.The code i used is shown below.
mainwin owin;
owin.timer->stop();
I wrote this code in dialog constructor.But it showing some run time error as "Unhandled exception at 0x670df703 in lpsc-jul16th.exe: 0xC0000005: Access violation reading location 0x56530908." and "There is no source code available for the current location." when i click the second Pushbutton to open the dialog.
So please help me to solve this problem.
With Regards,
Sudheer.