Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everybody.
In chapter 02 of "C++ GUI Programming with Qt4, 2nd edition" is an example which when I implemented, compiled and run it, give me an error about segmentation fault.
I uploaded all the codes at : http://ubuntuone.com/1BwwCaFw9801KfL39I7cA6[^] (about 22 Kb)
Thanks a lot of everybody who would help me ...
Posted
Comments
The_Inventor 6-Jul-13 4:42am    
Often these books will have 'errors' so that you will have to do some coding=work. Read the material again.
smss IR 6-Jul-13 9:56am    
I read it for tertiary again! but doesn't have any inconsistency with the written codes by me.
Matthew Faithfull 6-Jul-13 5:22am    
Use the debugger to determine where the segmentation fault is happening, which file, which function, which line if you can. If that doesn't allow you to fix the problem it will help someone to help you.
smss IR 6-Jul-13 9:56am    
Thanks man.
Richard MacCutchan 6-Jul-13 6:32am    
If you aspire to be a developer then you need to learn not to give up so easily. Make an effort to at least find the line of code that is failing, so you can provide some useful detail about your problem. And finally, understand that no one is going to download this code and debug it for you.

1 solution

use the debugger to find the exact crash location. And than search for working sample code of that piece.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900