I had this (or at least a similar problem) and I major trouble getting any of 
the patches to work, however I did sort it out in the end.

Firstly, Delphi doesn't seem to notice changes made in the vcl source (at least 
the rtl folder anyway).
You need to take a copy of any of the vcl files that you want to modify, and 
put them into a location that is earlier in the library path than the vcl 
source.

Secondly, I don't have the source handy, but I did something like the following 
in the finalization of winhelp viewier.

while HelpViewer.RefCount > 0 do begin
  HelpViewier.Release;
end;

Essentially the reference cound gets increased a few times, but it is never 
decreased.

Stacey

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss
Sent: Friday, 03 February 2006 11:29 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] FastMM4 memory leak report

I'm afraid that wasn't it. I checked the Helpintfs.pas file in the Delphi 
source directory and it had already included the suggested lines in the second 
article. So I guess that particular bug has been fixed. 
Which doesn't help explain why the memory leak report.

Phil.

[EMAIL PROTECTED] wrote:
> Third time lucky and I guess I need a good cup of coffee. So, one more 
> time with style :0)
>
>
> Yes, they are known bugs in the VCL.
>
> See links:
>
> http://www.cryer.co.uk/newsgroups/bp_delphi_rtl_win32/200510/051027700
> .htm http://www.automatedqa.com/support/leaks/d6/f8.html
>
> The later proposes a work around and notes that it was meant to have been 
> fixed in SP2.
>
> Cheers,
> Darrell.
>
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Phil Middlemiss
> Sent: Friday, 3 February 2006 8:14 a.m.
> To: NZ Borland Developers Group - Delphi List
> Subject: [DUG] FastMM4 memory leak report
>
> Hi guys - I'm getting a small memory leak report which I'm not sure 
> that I can do anything about. I'm running Delphi 6 with SP4. The 
> report has a couple of entries like the one below.
> Is this a known bug in the Delphi VCL?
>
> Cheers,
> Phil.
>
>
> --------------------------------2006/2/3
> 8:10:54--------------------------------
> A memory block has been leaked. The size is: 52
>
> Stack trace of when this block was allocated (return addresses):
> 402A47 [EMAIL PROTECTED]
> 403C37 [System][TObject.NewInstance]
> 406B21 [System][TInterfacedObject.NewInstance]
> 403FFE [EMAIL PROTECTED]
> 436A06 [HelpIntfs][THelpManager.Create]
> 402A47 [EMAIL PROTECTED]
> 43693B [HelpIntfs][GetHelpSystem]
> 465EDD [Forms][TApplication.ValidateHelpSystem]
> 4640EC [Forms][TApplication.Create]
>
> The block is currently used for an object of class: THelpManager
>
> Current memory dump of 256 bytes starting at pointer address 156DC50:
> 38 68 43 00 01 00 00 00 D8 11 40 00 00 00 00 00 90 E0 57 01 10 E1 57 
> 01 90 E1 57 01 02 00 00 00 00 00 00 00 00 00 00 00 73 67 43 00 8B 67 
> 43 00 10 24 A9 FE 80 80 80 80 00 00 00 00 51 DB 56 01 00 00 00 00 00 
> 00 00 00 00 00 00 00 47 2A 40 00 37 3C 40 00 FE 3F 40 00 6C 3C 40 00 
> 28 33 46 00
> 69 D5 E1 77 69 D5 E1 77 56 40 40 00 36 C0 24 00 55 3C 40 00 49 40 40 
> 00
> 33 47 42 00 9B 3C 40 00
> FE 2F 46 00 9B 3C 40 00 A1 01 45 00 FC 03 45 00 E0 46 40 00 30 00 00 
> 00
> 64 02 42 00 90 DC 56 01
> 88 59 4D 00 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 
> 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 80 
> 80 80 6F 23 A9 FE 80 80 80 80 00 00 00 00 B1 DA 56 01 00 00 00 00 00 
> 00 00 00 00 00 00 00 34 9D 40 00 8F 2A 40 00 08 28 42 00 40 26 42 00 
> A1 24 42 00
> 8 h C . . . . . Ø . @ . . . . .  à W . . á W .  á W . . . . .
> . . . . . . . . s g C . ‹ g C . . $ © þ € € € € . . . . Q Û V .
> . . . . . . . . . . . . G * @ . 7 < @ . þ ? @ . l < @ . ( 3 F .
> i Õ á w i Õ á w V @ @ . 6 À $ . U < @ . I @ @ . 3 G B . › < @ .
> þ / F . › < @ . ¡ . E . ü . E . à F @ . 0 . . . d . B .  Ü V .
> ˆ Y M . € € € € € € € € € € € € € € € € € € € € € € € € € € € € € € € 
> € € € € € € € € € € € € € o # © þ € € € € . . . . ± Ú V .
> . . . . . . . . . . . . 4  @ .  * @ . . ( B . @ & B . ¡ $ B .
>
>
> CONFIDENTIALITY: This email (including any attachments) may contain 
> confidential, proprietary and privileged information, and unauthorised 
> disclosure or use is prohibited.  If you received this email in error, please 
> notify the sender and delete this email from your system.
>
>
> _______________________________________________
> Delphi mailing list
> [email protected]
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>
>
>   

_______________________________________________
Delphi mailing list
[email protected]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to