Tag Archives: c++

Collecting crash reports over UDP using netcat

Collecting runtime errors (crashes, failed assertions, …) is very important part of software quality efforts. If you know crash details from your testing team you can handle them even before a tester writes first line of error report (!). That … Continue reading

Posted in en | Tagged , , , , | Comments Off on Collecting crash reports over UDP using netcat

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

Boosting qmake-based builds speed using ccache

C++ compiler is pretty big and slow tool and if one needs to make full rebuilds very often waiting for build finish is very frustrating. For those guys "ccache" tool was created. How is it working? Compiler output (*.o files) … Continue reading

Posted in en | Tagged , , | Comments Off on Boosting qmake-based builds speed using ccache

Profiling C++ apps with oprofile

If you are hitting some performance problems (related to CPU) there is very powerfull tool that can help you with diagnostics: oprofile. Below I'm summarizing some hints for efficient oprofile usage (not all are very obvious). First of all: some … Continue reading

Posted in en | Tagged , , , | Comments Off on Profiling C++ apps with oprofile

GIT: Automatic source code version information

Supporting releases: It's very important to know exact version used by customer. In order to reproduce the error you have to switch to codebase used for reported release and analyse the problem. If you have fixed release cycles it's pretty … Continue reading

Posted in en | Tagged , | Comments Off on GIT: Automatic source code version information