Print Page | Close Window

Leaks with Panes ???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=1661
Printed Date: 01 July 2024 at 12:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Leaks with Panes ???
Posted By: assassin316
Subject: Leaks with Panes ???
Date Posted: 12 January 2005 at 8:28am

I'm testing out the docking with the docking panes in VB.NET, and i'm doing very simple behavior. I simply create panes over and over (about 30), then I simply click on the 'X' of each pane to close all the panes. And of course I have the following code to destroy the pane:

Private Sub DockManager_Action(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_ActionEvent) Handles DockManager.Action

   If sActions(e.action) = "PaneActionClosed" Then
     DockManager.DestroyPane(e.pane)
   End If

End Sub

 

Before continuing, sActions in the above code is simple and array of strings in case anyone is wondering. Now here's the problem, the memory NEVER goes down, keeps on rising on this very simple test. Do these controls leak ??? Am i doing something wrong ???




Replies:
Posted By: Oleg
Date Posted: 20 January 2005 at 10:37am

Your code is right.

it is .NET.

Nobody know when .NET core free memory. Don't worry about it.

try to manually free garbage collection:

GC.Collect()

GC.WaitForPendingFinalizers()

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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