Hi all
Please tell me why we got segmentationfault.
and how can we detect these faults.
Thanx
merry
Printable View
Hi all
Please tell me why we got segmentationfault.
and how can we detect these faults.
Thanx
merry
Segmentation fault happens when an application tries to access memory in a way that violates system security policies. How to detect? Use a debugger :)
hi
Actually having a listView of items. When I click on items it wont show any error but when clicks on any other portion on the listView .It shows Segmentationfault.
How can I correct this
Thanx
Use a debugger to see where the crash occurs. You probably have a null pointer somewhere.
When you click on the other parts of the ListView the QListViewItem* is set to 0.
so before you do anything on it check if it is a null pointer.