Answer the question
In order to leave comments, you need to log in
How to catch an error in a QT application?
Wrote an application in QT that reads and writes to the COM port. Put all the necessary libraries. The application starts, but when the read function is started (SetTimer is started, calling my read function) from the COM port, it crashes without any messages. It just appears "windows is looking for an error ..." Functions for sending messages (via writefile) to the port work correctly.
But the point is apparently not in the work with the port itself. Everything works on 2 computers (windows 7 and 8) with QT installed. When launched on computers without QT, the program crashes.
The question is how to catch this error. Get some kind of meaningful message in order to understand what the program stumbles on.
Or maybe someone knows what QT loads during installation, which may be missing.
Made the output of the received data to a file. Judging by the output, the read function works correctly once, the write of the received one also works. After the output of my code is no more. The program should wait for the next timer read call, but it crashes.
Answer the question
In order to leave comments, you need to log in
When debugging, it was not possible to view more than one read call, after it a SegFault got out. But with "Start without debugging" everything worked, so I scored.
Well, deal with SegFault. The only thing to say. Actually, it comes out without debugging, only in the form of a fall.
Everything works on 2 computers (windows 7 and 8) with QT installed. When launched on computers without QT, the program crashes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question