Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: TSwitch: Important Memory leak, Bug Delphi ?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Oct 23, 2017 12:32 PM Last Post By: Dave Nottage
franck clement

Posts: 9
Registered: 6/18/12
TSwitch: Important Memory leak, Bug Delphi ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 23, 2017 2:09 AM
Hi,
I'm using the last version of Delphi 10.2 update 1 with the target Windows 64 but it is the same problem in 32 bits.

Here is the path to have the problem:

- Create a new application FMX
- Add a TSwitch componant on the main form.
- Add the following line at the end of the main form to display memory leaks

initialization
   System.ReportMemoryLeaksOnShutdown:=true; // report memory leaks when exiting the application
end.


When exiting the application, a window show a list of unexpected memory leak.
Have you also this problem ?
Is it a bug of Delphi ?
Thanks
Franck
Dave Nottage

Posts: 1,850
Registered: 1/7/00
Re: TSwitch: Important Memory leak, Bug Delphi ?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 23, 2017 12:32 PM   in response to: franck clement in response to: franck clement
franck clement wrote:

When exiting the application, a window show a list of unexpected memory leak.
Have you also this problem ?
Is it a bug of Delphi ?

Known issue:

https://quality.embarcadero.com/browse/RSP-18774

The comments have workarounds (as well as a links to them)

--
Dave Nottage [MVP, TeamB]
Find hints, tips and tricks at Delphi Worlds blog: http://www.delphiworlds.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02