delphi string leak

前端 未结 4 2074
抹茶落季
抹茶落季 2020-12-18 00:59

I\'m working with Delphi XE, and writing an application that is using RemObjects SDK to communicate (in case that may be relevant). I have FastMM debug on, and sometimes (no

4条回答
  •  悲哀的现实
    2020-12-18 01:31

    I usually see string leaks when they are contained inside other objects that have not been destroyed properly. For example an object that has not been freed. However, you would expect to see that object reported too.

    The way to resolve this is to download and use the full version of FastMM and configure it to report stack traces when it detects leaks. When you do that you will get a full stack trace of the code that allocated the leaked object and at that point it is usually clear what the problem is.

提交回复
热议问题