Print Page | Close Window

[solved] Flowgraph GDI Object Leak 17.2

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=23113
Printed Date: 03 May 2024 at 2:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [solved] Flowgraph GDI Object Leak 17.2
Posted By: doug.heimer
Subject: [solved] Flowgraph GDI Object Leak 17.2
Date Posted: 31 August 2016 at 1:24pm

CXTPFlowGraphPage::SetVisibleNodesWindowsRegions()


 

GDB Object Leak

 

       SetVisibleNodesWindowsRegions uses an optimization to perform rect region culling for child windows if any nodes the graph contain child windows exist.  In doing this, it calls CreateRectRgn for every node, regardless of whether that node has a child window.  However, only nodes with child windows have these regions released.  The rest leak.


Thanks,
Doug Heimer





Replies:
Posted By: olebed
Date Posted: 07 March 2017 at 3:28pm
Hello Doug Heimer,

Thank you for bringing this to our attention.
I'm glad to inform you that the leak have been fixed and the fix will be available in next beta or final release.

void CXTPFlowGraphPage::SetVisibleNodesWindowsRegions()
{
    ......

    if (bAtLeastOneWindowNode) // for optimization purposes
    {
        ......

        for (i=0; i<nodesWindowVisibleRegions.GetSize(); i++)
        {
            if (allNodes[ i]->GetWindowHandle())
            {
                .....

                SetWindowRgn(allNodes[ i]->GetWindowHandle(), nodesWindowVisibleRegions[ i], TRUE);
                
                //DeleteObject(nodesWindowVisibleRegions[ i]); // free-up resources
            }

            DeleteObject(nodesWindowVisibleRegions[ i]); // free-up resources
        }
    }
}

Regards,
 Oleksandr Lebed



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net