中国开发网: 论坛: 程序员情感CBD: 贴子 371321
茶壶
D10 有 Bug吗?还是说我的D10没有打最新的包?
D7下同样的代码没有问题。

环境:
使用了
FastMM,FastCode,

代码:
LoadPackage
UnLoadPackage

只要一调用LoadPackage与UnLoadPackage,FastMM就会报有 memory leak。

D7下不会有。
曾经调过很多不同的bpl,都有同样的问题。

D10下的Sysutil.pas文件大小:498 KB (510,413 字节)文件日期:2006年3月3日, 10:02:00

------------------------------------------------------------------------------

A memory block has been leaked. The size is: 188

Stack trace of when this block was allocated (return addresses):
51F03C41 [system.pas][System][System.@ReallocMem][2780]
51F09733 [system.pas][System][System.DynArraySetLength][16873]
51F089EF [system.pas][System][System.@InitializeArray][14991]
51F0980A [system.pas][System][System.@DynArraySetLength][16921]
51F19CAA [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15834]
7C92F0AA [RtlAnsiStringToUnicodeString]
51F19C38 [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15815]
7C8399F3 [FindAtomW]
51F19F5E [sysutils.pas][SysUtils][SysUtils.CheckForDuplicateUnits][15867]

The block is currently used for an object of class: Unknown

The allocation number is: 1818

Current memory dump of 256 bytes starting at pointer address 1DF7768:
01 00 00 00 09 00 00 00 84 DB 33 01 00 00 00 00 08 40 82 52 80 88 84 52 00 00 00 00 00 00 00 00
00 00 00 00 08 40 82 52 94 88 84 52 00 00 00 00 00 00 00 00 00 00 00 00 08 40 82 52 A0 88 84 52
00 00 00 00 00 00 00 00 00 00 00 00 08 40 82 52 AB 88 84 52 00 00 00 00 00 00 00 00 00 00 00 00
08 40 82 52 B5 88 84 52 00 00 00 00 AC 5A 32 01 00 00 00 00 08 40 82 52 C0 88 84 52 00 00 00 00
00 00 00 00 00 00 00 00 08 40 82 52 CA 88 84 52 00 00 00 00 EC DC 33 01 00 00 00 00 08 40 82 52
D5 88 84 52 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 E0 28 73 C7
00 00 00 00 61 79 DF 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 62 09 00 00 90 33 40 00
0F 3C F0 51 B1 17 F3 51 A4 15 F3 51 A1 13 F3 51 D9 36 F2 01 09 2D F2 01 29 38 F2 01 D5 91 F8 01
. . . . . . . . ? ? 3 . . . . . . @ ? R € ? ? R . . . . . . . .
. . . . . @ ? R ? ? ? R . . . . . . . . . . . . . @ ? R ? ? ? R
. . . . . . . . . . . . . @ ? R ? ? ? R . . . . . . . . . . . .
. @ ? R ? ? ? R . . . . ? Z 2 . . . . . . @ ? R ? ? ? R . . . .
. . . . . . . . . @ ? R ? ? ? R . . . . ? ? 3 . . . . . . @ ? R
? ? ? R . . . . . . . . . . . . . . . . . . . . . . . . ? ( s ?
. . . . a y ? . . . . . . . . . . . . . . . . . b . . . ? 3 @ .
. < ? Q ? . ? Q ? . ? Q ? . ? Q ? 6 ? . . - ? . ) 8 ? . ? ? ? .

----------------------------------------------------------------
A memory block has been leaked. The size is: 156

Stack trace of when this block was allocated (return addresses):
51F03C41 [system.pas][System][System.@ReallocMem][2780]
51F09733 [system.pas][System][System.DynArraySetLength][16873]
51F089EF [system.pas][System][System.@InitializeArray][14991]
51F0980A [system.pas][System][System.@DynArraySetLength][16921]
51F19CAA [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15834]
7C92F0AA [RtlAnsiStringToUnicodeString]
51F19C38 [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15815]
7C92F0AA [RtlAnsiStringToUnicodeString]
7C80E82B [GetModuleHandleW]

The block is currently used for an object of class: Unknown

The allocation number is: 1802
----------------------------------------------------------------
A memory block has been leaked. The size is: 1868

Stack trace of when this block was allocated (return addresses):
51F03C41 [system.pas][System][System.@ReallocMem][2780]
51F09733 [system.pas][System][System.DynArraySetLength][16873]
51F089EF [system.pas][System][System.@InitializeArray][14991]
51F0980A [system.pas][System][System.@DynArraySetLength][16921]
51F19CAA [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15834]
7C92F0AA [RtlAnsiStringToUnicodeString]
51F19C38 [sysutils.pas][SysUtils][SysUtils.InternalUnitCheck][15815]
7C92F0AA [RtlAnsiStringToUnicodeString]
7C80E82B [GetModuleHandleW]

The block is currently used for an object of class: Unknown

The allocation number is: 1800

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录