Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Debugging C/C++ Memory Issues in Visual Studio
Rating: 4.3 out of 5(586 ratings)
5,333 students

Debugging C/C++ Memory Issues in Visual Studio

Apply techniques to detect & isolate memory related errors through Visual Studio
Created byUmar Lone
Last updated 10/2025
English

What you'll learn

  • Understand different kinds of problems associated with memory management
  • Effectively detect & isolate memory issues
  • Gain confidence in C/C++ memory management
  • Understand and use the facilities provided by Visual Studio for detecting memory issues

Course content

9 sections87 lectures7h 52m total length
  • Slide Deck0:05

    Slide deck

  • Process Memory Layout5:54

    We'll discuss the basics of a process that represents the virtual address space of the program. You'll learn about the different sections in the address space and how they're used in a C/C++ program

  • Pointers2:18

    This is a short introduction to pointers. You can skip this video if you're already familiar with pointers.

  • Using Visual Studio4:54

    Here, I'll given a quick introduction to using Visual Studio. If you've never used it before, this video will help you understand its features and use it for creating C/C++ projects.

  • Overview of Debugging In Visual Studio5:51

    This lecture shows how to debug C/C++ application in Visual Studio. I'll show some important shortcuts that will make you more productive while debugging applications.

  • Byte Ordering6:08

    Throughout this course, we'll frequently view data inside the memory window of Visual Studio. However, to understand that, you have to know byte ordering which is explained in this lecture.

Requirements

  • Fair knowledge of C & C++ is essential for this course
  • Not recommended for beginners

Description

C++ is a large and complex language, but it gives programmers complete freedom when it comes to management of dynamic memory. This allows the programmers to allocate memory and manipulate it at runtime. That is why C++ is still a favorite language for high performance applications in various domains such as gaming, telecom, finance, aerospace, etc.

However, it requires programmers to take great care while using dynamic memory, such as releasing acquired memory, taking care not to overstep memory boundary, etc. Otherwise, it could lead to problems such as dangling pointers, memory corruption, memory leaks, etc.

This course will help you overcome all these problem by leveraging the excellent features that Visual Studio provides. It has a rich set of functions provided by the C/C++ runtime heap library. These functions can help detect memory leaks, overflows, etc. You'll learn how to use these functions effectively and make your programs bug-free.

In this course, you'll start with the basics of heap memory management and understand C & C++ allocation functions/operators in depth. You'll also learn how to effectively use them to avoid memory problems. Afterwards, you'll learn about the Visual Studio heap library functions and understand how to use them in your code.

By the end of this course, you'll have a deep understanding of dynamic memory management. You'll be able to use CRT heap functions effectively to detect & isolate memory problems. You'll also implement the Visual Studio functions so that they can be used with any C++ compiler.

Note:This course requires Visual Studio 2017 or a higher version.

Who this course is for:

  • C/C++ programmers who wish to understand memory management in depth
  • C/C++ programmers who wish to understand memory management in depth
  • Programmers who use Visual Studio for C/C++ development