Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/VCL/System Controls/TShellTreeView    [ Add a report in this area ]  
Report #:  75751   Status: Open
Memory leaks in TShellTreeView
Project:  Delphi Build #:  12.0.3210.17555
Version:    12.3 Submitted By:   Rothe Horst
Report Type:  Minor failure / Design problem Date Reported:  7/14/2009 7:13:52 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   271070
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: 10
Description
None
Steps to Reproduce:
using ShellTreeView component from unit ShellCtrls in a Form

insert
ReportMemoryLeaksOnShutdown:=True;
before
Application.Initialize;
in the .dpr file

Close the Application

Memory leaks are reported


Workarounds
Use a Copy of ShellCtrls.pas with following changings:

replace Line 209
destructor Destroy;
by
destructor Destroy; Override

replace Line 859
  if (Length(Result) > 1) and (Result[1] = '?') and (Result[2] in ['0'..'9']) then

by
  if (Length(Result) > 1) and (Result[1] = '?') and CharInSet(Result[2],['0'..'9']) then

add after Line 1601 (begin)
  if not (csDestroying in ComponentState) then

add after Line 1612 (finally)
  if not (csDestroying in ComponentState) then
Attachment
None
Comments

None

Server Response from: ETNACODE01