Quantcast
Channel: Embarcadero Community - Embarcadero Community
Viewing all articles
Browse latest Browse all 1888

Memory leak after upgrade to Delphi 10.1 Berlin

$
0
0

Hi all,

i recently upgraded to Delphi 10.1 Berlin from 10 U1 Seattle.

After that I get a memory leak reported by the IDE.
The Code hasn't been changed after the upgrade, so something must have been changed in the Delphi sources.

What I have figured out so far is, that it is somehow related to the TMenuBar component.
When I run the application and not touching the main menu in any way, then the memory leak is not reported.
But as soon as I click on a menu item (opening the menu is already enough, no need to execute a menu entry) the leak is reported after closing the application.

Is it a known problem?
Is there a workaround?

 

You can very easy reproduce the error by:

1. Create a new Firemonkey desktop application
2. drop a TMenuBar item on the form
3. add some menu items
4. set  "System.ReportMemoryLeaksOnShutdown := True;" in the application unit
5. run the application and click the menu item
6. close the application

Here you go... a memory leak should be reported after closing the app.


Some Info:
I am developing on a windows 7 system;
The IDE is version Delphi 10.1 Berlin;
The application is based on the FMX framework.
Styles are used (but disabling styles did not help) 

Greetings

A. Hoppe


Viewing all articles
Browse latest Browse all 1888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>