--------------------------------2007/7/2 16:13:13--------------------------------
A memory block has been leaked. The size is: 28
Stack trace of when this block was allocated (return addresses):
51F23BD6 [System][@GetMem]
51F278D1 [System][@NewAnsiString]
51F278FC [System][@LStrFromPCharLen]
B568055 [SimpleWizards\CnBookmarkWizard.pas][CnBookmarkWizard][CnBookmarkWizard.TCnBookmarkForm.UpdateComboBox][744]
B60326C [ExplorerWizard\CnExplore.pas][CnExplore][CnExplore.TCnExploreForm.Create][724]
B60640F [ReopenWizard\CnRoClasses.pas][CnRoClasses][CnRoClasses.TIniContainer.LogFile][787]
B60CDE9 [IdeEnhancements\CnInputSymbolList.pas][CnInputSymbolList][CnInputSymbolList.TSymbolItem.OutputTemplate][636]
B60C658 [CnInputSymbolList][CnInputSymbolList..TCodeTemplateList][972]
410042 [ui\AppMain.pas][AppMain][AppMain.TAppBuilder.EditFlipChildrenSelected][4028]
下面的代码是不是写反了? not 不要? CnExplore.pas内的
if not Assigned(FFileFilterList) then
FreeAndnil(FFileFilterList);
if not Assigned(FDirectoryList) then
FreeAndnil(FDirectoryList);
if not Assigned(FFileFilterMenu) then
FreeAndnil(FFileFilterMenu);
if not Assigned(FDirectoryMenu) then
FreeAndnil(FDirectoryMenu);
inherited Destroy;
CnExploreForm := nil;
接贴
解决:刚才把 not 去掉了,看不到这一处有leak
接贴
cnShell 内存Leak更多,CnShellCtrls.pas,delphia工作半个小时,退出时,FastMM写了300多M的内存Leak报告,主要是关于cnshellview和cnshellList的,好像写不完,我只好从管理器里强行关bds.exe ,希望这个解决了就好了