Visual Studio

C++ memory leak without virtual destructor

In this post I will talk about detecting and debugging memory leaks in a C++11 program, Visual Studio’s built in heap profiler and Intel Parallel Studio 2019. And also the importance of virtual destructors when implementing derived subclasses.

Visual Studio 2017 with C++17 and Boost

Visual Studio 2017 was just recently updated to version 15.5. It brings many goodies for us C++ programmers, among them a C++17 compiler switch /std:c++17, and a conformance mode switch /permissive-.

Integrating LibreOffice into C++

At our math website we publish printable PDF worksheets for school children. We’ve just started publishing crosswords, while relatively easy to create, they require much work to make them into tasks.

How to show folder size in Windows

You are wondering why is it easy to see a file size in Windows explorer, but not the folder size? The short answer is – resources. In order for the explorer to show a directory size it needs to process all files in all sub folders and calculate the space that all the files take in a directory. The calculation is resource draining and time consuming. The feature was available in Windows before XP, but was then removed as it made explorer slow to work with.