LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Qt application: segmentation fault error (https://www.linuxquestions.org/questions/programming-9/qt-application-segmentation-fault-error-376308/)

dr_berta 10-24-2005 04:49 AM

Qt application: segmentation fault error
 
Hi,

I'm writing an interface to an USB board using Qt libraries 3.3.3.
My goal is to program and control a fpga that is present on that board. Until now I can recognize the external board and download the firmware, but when I try to send commands to that board using the appropriate driver function, the software crash and send me a "segmentation fault "error.
I would understand if this error is due to a driver bug or if I've made an error during the compilation of my application (I've no errors or warnings during compilation).

Someone could help me?

Thank's
dr_berta

trevelluk 10-24-2005 02:55 PM

Segmentation fault means that your program tried to access memory it wasn't allowed to. I can't give any definite help without seeing the code, but two common causes are attempting to access data beyond the end of an array, or trying to access a NULL pointer. If it's not one of these, it is almost certainly some kind of other pointer problem.

Running your program in a debugger will probably help to track the problem down.

Mara 10-24-2005 03:20 PM

Check carefully the data/commands you pass to the driver. You probably pass them as pointers and one (or more) of them is wrong.


All times are GMT -5. The time now is 05:40 PM.