Home > Back-end >  C builder6 after fastMM4.99, create a new project will prompt memory leaks
C builder6 after fastMM4.99, create a new project will prompt memory leaks

Time:10-17

Such as topic, create a new project, then prompt TWinHelpViewer memory leaks, and download the south fruit pear brother packaging is the same as the green version of the c + + builder6 problems, according to the official website of method modified is still the same, how to solve?
http://qc.embarcadero.com/wc/qcmain.aspx? D=2294

The Memory Leak in WinhelpViewer. Pas

I have found a error in winhelpviewer. Pas

In the finalization procedure it release HelpViewer PTR misses

Correct

Finalization
If Assigned (HelpViewer. FHelpManager) then
The begin
HelpViewer. InternalShutDown;
end;
If Assigned (WinHelpTester) then
The begin
WinHelpTester:=nil;
end;
HelpViewer. FreeInstance;//PTR Release
HelpViewer:=nil;
The end.

CodePudding user response:

refer to the original poster Focushine response:
such as topic, create a new project, will prompt TWinHelpViewer memory leaks, and download the south fruit pear brother packaging is the same as the green version of the c + + builder6 problems, according to the official website of method modified is still the same, how to solve?
http://qc.embarcadero.com/wc/qcmain.aspx? D=2294

The Memory Leak in WinhelpViewer. Pas

I have found a error in winhelpviewer. Pas

In the finalization procedure it release HelpViewer PTR misses

Correct

Finalization
If Assigned (HelpViewer. FHelpManager) then
The begin
HelpViewer. InternalShutDown;
end;
If Assigned (WinHelpTester) then
The begin
WinHelpTester:=nil;
end;
HelpViewer. FreeInstance;//PTR Release
HelpViewer:=nil;
End.



I also encountered this problem, also see here
http://stackoverflow.com/questions/4967432/fastmm4-delphi6-leak-of-tapplication

CodePudding user response:

Use fastmm for a long time, haven't encountered this problem, only recently met
  • Related