Unsolved QT Appcrash on Windows Server 2012 R2
-
Our Company use a software made with QT. We buyed a cloud server with Windows Server 2012 R2 installed because the qt program runs always 24 hours for day and 7 days for week.
Sometimes the program crash with these errors
We recompile the program with QT Creator Community 4.7.1 with MinGW 5.11.2 (32bit) we can't use the MinGW 64bit because the C++ code is not compatible with 64 bit version.
Also we installed Qt on the Windows Server to run the program.
Any Solutions to prevent the appcrash?
Best Regards
Antitaccheggio Italia Bologna
-
Hi
The only way to prevent the crash is to find the reason why it crashes.
It could very well just be plain bug in program code.
I would create a defualt GUI project and run on server to make sure its not related to some DLL issue.
If that dont crashes, it means you have a normal bug an the debugger could be used to find it. -
Thanks. We try this approach. Sometimes this problem occurs when the program is running for many days. My client tells me this application crashes also on different PC Desktop (i don't write the code)
-
@AIBologna
if it also crashes on Desktop pc, i would assume a regular error.
Do you have access to the source code? -
Yes. The code is written in C++. I suppose it's a resource consume problem. The application connects to hardware device to dowload data. The crash is random. Sometimes the app crashes after some days but sometimes after months
-
@AIBologna
It could be buffer overrun or a sometimes dangling pointer.
I would add some logging to the app in key places to get some more info.alternatively, if u have extra hardware, set up an extra pc
and run the app with debugger on.
At some point, it should crash and give away the location.
I understand waiting for months is not viable. :)