Tag Archives: reliability

Fighting with NullPointerException in C++, the static way

Dereferencing NULL pointer is a very common programming error in almost any programming language that supports pointers. It cannot be caught at build time in general, so we can carefully check every pointer before dereference and handle errant cases in … Continue reading

Posted in en | Tagged , , | Comments Off on Fighting with NullPointerException in C++, the static way

Better debugging of QT warnings

When a QT warning is issued you might not know what code is causing activation of this warning. Warnings are not fatal, application is not stopped with proper backtrace. QT creators added very useful option for that purpose: QT_FATAL_WARNINGS. If  … Continue reading

Posted in en | Tagged , , | Comments Off on Better debugging of QT warnings

Backtraces for C++

Java does it pretty well. C++ sucks by default. What is that?: The answer: Backtraces. Sometimes assert information (file name and line number where assertion occured is not enough to guess where the problem is. It's useful to see the … Continue reading

Posted in en | Tagged , , , | 1 Comment