[Qt-interest] segmentation fault confusion
Malyushytsky, Alex
alex at wai.com
Thu Feb 12 23:55:28 CET 2009
Check the value of "rotatepic".
It was probably not initialized properly, so it is either nill or garbage.
Even though this is not a QT problem, I would recommend search for "Debugging Techniques" in the QT documentation ( qDebug, Q_ASSERT, Q_CHECK_PTR(ptr), etc).
Regards,
Alex Malyushytsky
-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Avishek_Sharma
Sent: Wednesday, February 11, 2009 9:10 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] segmentation fault confusion
In the slot rotate() for the 'Rotate' button,I added one extra line-
rotatepic->setPaletteBackgroundColor(QColor(170,255,0));
......
If I comment out the line rotatepic->setPaletteBack....., The 'Rotate' feature works fine.
I can't figure out what's wrong.
Please advice.
Thanks in advance.
Avi
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.
"This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you."
"Please consider our environment before printing this email."
More information about the Qt-interest-old
mailing list