I am writing a game in C++ using SDL as the main library, and everything seems to be going okay. However I am noticing large memory usage when I load in a texture, and freeing up pointers/objects with delete() doesn't seem to be actually freeing up memory. So on linux I used ValGrind but I find it difficult to understand where my problems are happening.
I copied my code over and have it compiling and running under Windows using Visual Studio 2010 Pro. I notice the memory usage is the same on both windows and linux, and the memory use doesn't rise constantly but it does rise when objects are created (normal), however before creation is should be deleting the one previously taking that memory space (not freeing), and using some couts I can see that it is freeing them.
ie)
MyObject *obj = new MyObject() // results in + 200kb used
delete(obj) // Doesn't reduce memory by 200kb
obj = NULL // Just sets the pointer to null
If I kept running that my memory would constantly grow by 200kb (which I think is far more than that object should be using anyways). So to try and figure out what was going on I tried adding in the leak code as stated by MS on MSDN.
AttikClient::StartGame() initializes a static function in a static class, that has the main game loop and other logic. However when I close my program there is no leak output in the output window. I have debug on as I can step through the code and can see basic output but no leak information.
Win11Debloat 06.11.2026 by Razvan Serea
Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly declutter and customize your Windows experience. It can remove pre-installed bloatware apps, disable telemetry, remove intrusive interface elements and much more. The script also includes many features that system administrators and power users will enjoy. Such as a powerful command-line interface, support for Windows Audit mode and the option to make changes to other Windows users.
All changes made by Win11Debloat can be easily reversed, and most removed apps can be restored via the Microsoft Store. A full guide on how to undo the changes is available here.
Win11Debloat features:
Below is an overview of the key features and functionality offered by Win11Debloat. Please refer to the wiki for more information about the default settings preset.
Remove a wide variety of preinstalled apps. Click here for more info.
Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
Disable tips, tricks, suggestions & ads across Windows.
Disable Windows location services & app location access.
Disable Find My Device location tracking.
Disable 'Windows Spotlight' and tips & tricks on the lock screen.
Disable 'Windows Spotlight' desktop background option.
Disable ads, suggestions and the MSN news feed in Microsoft Edge.
Hide Microsoft 365 ads on the Settings 'Home' page, or hide the 'Home' page entirely.
Disable & remove Microsoft Copilot.
Disable Windows Recall.
Disable Click to Do, AI text & image analysis tool.
Prevent AI service (WSAIFabricSvc) from starting automatically.
Disable AI Features in Edge.
Disable AI Features in Paint.
Disable AI Features in Notepad.
Disable the Drag Tray for sharing & moving files.
Restore the old Windows 10 style context menu.
Turn off Enhance Pointer Precision, also known as mouse acceleration.
Disable the Sticky Keys keyboard shortcut.
Disable Storage Sense automatic disk cleanup.
Disable fast start-up to ensure a full shutdown.
...and more.
Once you’ve downloaded the Win11Debloat file (Get.ps1), just follow these quick steps:
Locate the Get.ps1 script file.
Right-click the file and select Run with PowerShell from the context menu.
If prompted by User Account Control (UAC), select Yes to grant the script the necessary administrative permissions.
Win11Debloat 06.11.2026 fixes:
Fix lock screen spotlight option being disabled when disabling the start recommended section by @Raphire in #619
Fix log message formatting by @Raphire
Note
The -RemoveCommApps and -RemoveW11Outlook command-line parameters for uninstalling a few specific apps have been removed with this release. If you previously relied on these parameters, please see this wiki page for alternative methods of removing these apps.
Download: Win11Debloat 06.11.2026 | Open Source
View: Win11Debloat Home Page | Screenshots 1| 2
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
Yes for me, I installed 'old calculator' (Windows 7 calculator) in its place since it is more useful to me. I think paint is the only one I left installed
read this recent topic in another forum:
https://www.askwoody.com/forums/topic/still-on-win-10-and-happy-to-be-there/
some people are happy sticking with Win10
Question
firey
I am writing a game in C++ using SDL as the main library, and everything seems to be going okay. However I am noticing large memory usage when I load in a texture, and freeing up pointers/objects with delete() doesn't seem to be actually freeing up memory. So on linux I used ValGrind but I find it difficult to understand where my problems are happening.
I copied my code over and have it compiling and running under Windows using Visual Studio 2010 Pro. I notice the memory usage is the same on both windows and linux, and the memory use doesn't rise constantly but it does rise when objects are created (normal), however before creation is should be deleting the one previously taking that memory space (not freeing), and using some couts I can see that it is freeing them.
ie)
MyObject *obj = new MyObject() // results in + 200kb used
delete(obj) // Doesn't reduce memory by 200kb
obj = NULL // Just sets the pointer to null
If I kept running that my memory would constantly grow by 200kb (which I think is far more than that object should be using anyways). So to try and figure out what was going on I tried adding in the leak code as stated by MS on MSDN.
http://msdn.microsoft.com/en-us/library/e5ewb1h3(v=vs.80).aspx
I put that in my main.cpp file and put the "_CrtDumpMemoryLeaks();" in my main function which looks like
AttikClient::StartGame() initializes a static function in a static class, that has the main game loop and other logic. However when I close my program there is no leak output in the output window. I have debug on as I can step through the code and can see basic output but no leak information.
I have also tried VLD (Visual Leak Detector) http://www.codeproject.com/Articles/9815/Visual-Leak-Detector-Enhanced-Memory-Leak-Detectio
And got the same results. The build mode is for sure set as debug, and I make sure to do F5 which is Debug Application. Am I missing something?
Link to comment
https://www.neowin.net/forum/topic/1155344-c-visual-studio-2010-memory-leak-tracking/Share on other sites
8 answers to this question
Recommended Posts