Kernel/Qtimer.cpp: No such file or directory
-
Hi All,
I'm using Qt 4.8 version where I have made use of Qtimer . During compilation the code snippet compiles fine but during run time , the application comes to an abrupt end displaying the following message.
Program received signal SigSEGV, Segmentation fault.
QTimer::start(this=0x0) at kernel/qtimer.cpp:215
215 kernel/qtimer.cpp: No such file or directory.
Please help.Thanks & Regards,
Madesh -
What does it do in the supported version, Qt5.x?
-
Thanks for replying.
It's working fine in Qt 5.X. -
4 isn't supported anymore. Also, getting help in this forum, the "upgrade to a supported version" answer will be very common when asking about problems in legacy versions.
-
I do understand that I should upgrade to the latest version , however, I'm working on a legacy application, upgrading right now is a huge task , given the limited time frame.
-
@Madesh said in Kernel/Qtimer.cpp: No such file or directory:
QTimer::start(this=0x0)
You have
this == 0
. That's a problem, no matter what library you're using.Do some debugging; find out why the program is trying to call the
start()
method on a nullptr. -
Hi, Thanks for replying .
I debugged code and found out that , timer is created on some condition in constructor. If that condition was not met, the timer is not created. So i was getting segmentation fault error.This issue is resolved now.
Thanks a lot.