Raised This Month: $ Target: $400
 0% 

Memory leak on ADT Arrays


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alerad
Junior Member
Join Date: Mar 2016
Old 12-08-2018 , 09:26   Re: Memory leak on ADT Arrays
Reply With Quote #1

Quote:
Originally Posted by SZOKOZ View Post
If the variable "i" is another handle, you need to manually close that too. Then close each arraylist manually.

E.g.
Code:
for (int i = 0; i < g_bulkNotLoadedClientsArray.Length; i++)
{
    ArrayList tempArray = view_as<ArrayList>(g_bulkNotLoadedClientsArray.Get(i));
    for (int j = 0; j < tempArray.Length; j++)
    {
        CloseHandle(tempArray.Get(j));
    }
    CloseHandle(tempArray);
}

Hey, yeah, that's what i've tried to do when I said I tried iterating over the bulk array, however, doing this for some reason generates even more ArrayCell leaks.
alerad is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode