我是窗口继承的,继承出来的子类作为dll,我大概猜到是重复释放资源造成的,因为我只打开一个dll时,没有报错,但是打开两个dll,然后关闭主程序就会出错,这些dll都是继承下来的窗口
我用了sharemem错误消息如下:---------------------------
KNet.exe: Memory Leak Detected
---------------------------
This application has leaked memory. The small block leaks are:1 - 12 bytes: String x 1213 - 20 bytes: TObjectList x 3, TList x 3, String x 1, Unknown x 2921 - 28 bytes: TComponentList x 1, TPen x 1, TIconImage x 1, TBrush x 229 - 36 bytes: TSizeConstraints x 1, TFont x 2, Unknown x 345 - 52 bytes: THelpManager x 1, TIcon x 153 - 60 bytes: TComponentListNexus x 1, Unknown x 261 - 68 bytes: TMultiCaster x 193 - 100 bytes: TControlCanvas x 1317 - 348 bytes: TApplication x 1525 - 572 bytes: THintWindow x 1Note: This memory leak check is only performed if Delphi is currently running on the same computer. To obtain a log file containing detail on memory leaks, enable the "FullDebugMode" and "LogMemoryLeakDetailToFile" conditional defines. To disable this memory leak check, undefine "EnableMemoryLeakReporting".
---------------------------
确定   
---------------------------