Board index » delphi » Memory Leak in VCL
Stephen Novotny
![]() Delphi Developer |
Sun, 21 Nov 1999 03:00:00 GMT
|
Stephen Novotny
![]() Delphi Developer |
Sun, 21 Nov 1999 03:00:00 GMT
Memory Leak in VCLOn and off I have been aware of threads discussing memory leaks in the Is this true? (I think Yes!) If there is a patch, whats it called and how can I get it (from Borland Help would really be appreciated Stephen Novotny |
Euan Garde
![]() Delphi Developer |
Sun, 21 Nov 1999 03:00:00 GMT
Re:Memory Leak in VCLQuoteStephen Novotny wrote: and the "system" patch which is on the web site. Apparently the Delphi R&D team used BoundsChecker (or similar) when writing D3 and reckon they have caught most of the leaks. -- Email: e...@valstar.co.uk |
Dmitry Dmitrienk
![]() Delphi Developer |
Wed, 24 Nov 1999 03:00:00 GMT
Re:Memory Leak in VCLHi Stephen! Quote
memory leaks. Ans... Look, some times ago i found this file at the Borland's ftp site. Now it missing. *************************************** The updated System.dcu for Delphi 2.01 addresses two problems: * The behavior of the FileMode system variable was modified for * A bug was fixed in the memory suballocator which caused a Install the updated System.dcu by copying it to your Delphi 2.0\Lib ******************* The GetMem.inc and OpenFile.asm modules were modified to accommodate If you wish to update your installation of the source code to reflect ********** * Remove FreeBlockDesc() procedure (line 142). * Replace DeleteBlock() procedure (line 179) with the following code: procedure DeleteBlock(bd: PBlockDesc); * Replace MergeBlockAfter() function (line 190) with the following code: function MergeBlockAfter(prev: PBlockDesc; const b: TBlock) : TBlock; * Replace FreeSpace() function (line 303) with the following code: function FreeSpace(addr: Pointer; maxSize: Integer): TBlock; ************ * Replace line 63: MOV EDX,FILE_SHARE_READ with the following four lines: MOV DL,FileMode * After line 131: JMP @@exit and before line 133: OpenFile ENDP insert the following nine lines: @@shareTab: * After line 144: MOV CL,FileMode and before line 145: CMP CL,2 insert the following line: AND CL,3 =========================================================================== Good luck. |