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.
Camtasia 2026.1.3 by Razvan Serea
TechSmith Camtasia is the complete professional solution for high-quality screen recording, video editing and sharing. Camtasia 2026 makes editing your videos easier, and faster than ever. The new editor is packed with enhanced video processing, all-new production technology, an innovative library, and stock videos and other creative assets to help you create more polished, professional videos. No video experience needed. Anyone can create informative, engaging videos.
Create professional, eye-catching videos:
Add special video effects - Apply Behaviors that are perfectly designed to animate your text, images, or icons. Get a crisp, polished look without being a professional video editor.
Drag-and-drop your edits - What you see is what you get. Every effect and element in your video can be dropped and edited directly in the preview window. And you can edit at resolutions up to beautiful 4K, for clear video at any size.
Get exceptional performance - Camtasia takes full advantage of your computer’s processor with 64-bit performance. You’ll get fast rendering times and enhanced stability—even on your most complex projects.
Camtasia 2026.1.3 changelog:
Feature Updates
Improved keyboard navigability in tool panels.
Improved screen reader accessibility of headings in Preferences.
Tool panels can now be resized using a keyboard-navigable control.
Updated color of folder icon in User Library tab for better visibility.
Grouped media now render a composite waveform considering all audio media within that group.
Added Long Path Aware to the manifest of Editor and Recorder.
Performance Improvements
Improved performance for editing groups on the timeline.
Improved the project loading performance when timeline has lots of trec media with cursor data.
Updates for IT Administrators
Updated cpp-httplib from 0.38.0 to 0.43.3.
Updated expat from 2.7.4 to 2.8.0.
Updated freetype from 2.13.3 to 2.14.3.
Updated harfbuzz from 13.0.1 to 14.2.0.
Updated libpng16 from 1.6.55 to 1.6.58.
Updated pango from 1.57.0 to 1.57.1.
Updated girepository from 2.86.3 to 2.88.0.
Updated pcre2-posix from 10.47.0 to 12.0.2.
Added new harfbuzz-gpu.dll.
Updated FFmpeg from 7.1.1 to 7.1.2.
Updated aom from 3.11.0 to 3.13.1.
Updated dav1d from 1.5.0 to 1.5.1.
Updated ogg from 1.3.5 to 1.3.6.
Updated SDL2 from 2.32.4 to 2.32.10.
Updated zlib from 1.3.1 to 1.3.2.
Updated Nalpeiron binaries to version 4.4.69.3.
Bug Fixes
Fixed an issue which prevented some user submitted crash reports from being sent.
Fixed a potential memory leak when decoding HEVC or VP9 video.
Fixed a potential crash when trying to delete a range selection on a magnetic track.
Fixed a bug with the Properties Panel showing stale properties when only a caption is selected on the timeline.
Fixed an issue that could prevent the Opacity and Blur properties from being changed in the Background Removal effect.
Fixed an issue where larger Camtasia online projects may fail to open in Camtasia Editor.
Table of contents thumbnails are no longer created for Smart Player exports with no table of contents.
Fix resetting skew revert to revert just skew and not scale as well.
Fixed editing in Snagit with snagX file with Unicode characters.
Fixed a bug where grouped visual media could be cropped in some cases.
Fixed importing SnagX files with Unicode characters.
Localization fixes.
Download: Camtasia 2026.1.3 | 309.0 MB (Shareware)
View: Camtasia Homepage | Tutorials | Screenshot
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
yeah it seems to be Edge only. The dialog buttons work as expected in Chrome and Firefox. The phone is using Android 16 (OneUI 8.5) and Edge version 149.0.4022.53
I'm not aware of this issue, but to help the other guys.
What version of Android are you using?
Did you try a different browser? To see if Edge is the issue here.
I agree when are you going to read this (really poor BTW) article?
Here is a better article so you actually know what is going on and answers questions you had in other comments --> https://arstechnica.com/gadgets/2026/05/speed-boosting-low-latency-profile-is-one-of-the-improvements-coming-to-windows-11/
It is unclear if one will be able to disable the new profile at this point but I am not seeing any reason why one would.
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