Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QThread::start: Failed to create thread (The access code is invalid.) terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
i am having program crashed with message :
- QThread::start: Failed to create thread (The access code is invalid.)
- terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
- This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information
Please kindly advise me, is it caused by Operating System Windows 2016 (that i am using) or caused by the QT Compiler not compatible or coding issue ?
thank you for your kind attention.
Use a debugger, take a look at the backtrace where it crashes and why.
@Christian-Ehrlicher : actually i am the end-user of the application. My developer said it is caused by my server's Operating System Windows 2016 that causee his program crashed and displaying the messages i mentioned above
But what should we do against this then?
@Christian-Ehrlicher : if from your view, based on your long experiences, may i know is it caused by Operating System Windows 2016 (that i am using) or caused by the QT Compiler not compatible or coding issue ?
It can be all of them. Since Windows Server 2016 is based on Win10 I doubt it's an OS issue. The only way to find it out is to debug the crash.
@Christian-Ehrlicher : oh i see, many many thanks for your view and feedback , really appreciated. Let me once again check with them. By the way, anybody here in the Forum feel free to give your feedback or comments, thank you for all your kind attention
In addition to @Christian-Ehrlicher, are you running a 32 or 64bit version of the OS ? What about the application ?
One of the reasons for that error to be thrown is memory exhaustion but it's not the only one. See here.
Dunant last edited by Dunant
This post is deleted!