Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Dmitriy,
Unmanaged C++ does not have a garbage collection mechanism. If you do not release a memory block, it will not be released automatically. The garbage collection is available only for .NET applications.
I can use "Get Results" at any time excluding the moment my code is completed. How can I get results just before garbage collector to free the memory? I thought "Force Garbage Collection" button could help but in my AQtime panel of Visual Studio this button is disabled...
AQtime detects a CButton leak, but it is presented by one of the 'C++ native memory' allocations in the results. You can see this by selecting this allocation in the Report panel and then double-clicking the top item of the call stack displayed in the Details panel.
AQtime detected unreleased memory blocks (including my own CMine class) after application has been closed except CButton instance. Does MFC kills it somehow by itself?
To see the 'CButton' class name instead of the 'C++ native memory' item in the results, you need to add the module containing definition of this class to your project. In case of Visual Studio 2005, this module is 'mfc80ud.dll'. You can find the location of the module in the Event View panel: just find the record telling that this module has been loaded into the process.
Please send us your AQtime project along with the results via the Contact Support form. Also please describe the expected results.
Moreover, I get the same results even if check no areas though I expected to get nothing.
Could anybody explain what is probably wrong?
Related Content
- 15 years agodavid_heloise
- 15 years agoRoyceTucker
- 14 years agofloleroy
- 13 years agoSamMackrill
- 13 years agojon_1