Rust Devs Think We're Hopeless: Let's Prove Them Wrong (with C++ Memory Leaks!)

2025-05-11
Rust Devs Think We're Hopeless: Let's Prove Them Wrong (with C++ Memory Leaks!)

This video tutorial playfully challenges the perception of C++ developers as perpetually battling memory leaks. It demonstrates, through a simple C++ program, how to intentionally create and then effectively track down these leaks using debugging tools like `_CrtDumpMemoryLeaks`. The author presents memory leak hunting as a fun, almost reckless adventure, ultimately providing a practical guide for identifying and fixing memory issues in C++.

Read more
Development

C++ Memory Leaks: Show Rust Devs Who's Boss!

2025-05-11
C++ Memory Leaks: Show Rust Devs Who's Boss!

This video tutorial demonstrates how to intentionally create and hunt down memory leaks in C++. While Rust developers often poke fun at C++'s memory management, this tutorial shows how to use _CrtDumpMemoryLeaks and the DEBUG_NEW macro to detect and pinpoint memory leaks, proving that C++ developers can effectively handle memory issues without needing a borrow checker or lifetimes. Starting with a simple example, the tutorial progressively teaches how to use debugging tools to track down memory leaks, even in complex programs.

Read more
Development Memory Leaks