Replies: 6 comments
|
In any case, the 3 leaks are known and intentional (that is why they are registered). However, Otherwise, you can choose to enable As for why there are multiple copies of |
|
@rlebeau I understood your explanation and it was documented, which is good. However, could it be an error in Indy architecture? A global variable never is a good sign... But, I don't know Indy architecture so, I might be wrong. About installation, I've never used. First, I've tried to install from OPM but when I saw the memory leaks I've tried the use the SVN sources — what do you think is better, from SVN to get updates fast, right? |
|
"could it be an error in Indy architecture?" - not really, more an issue in some versions of Delphi, where units could still be accessed after they were finalized. But like I said, it is not much of an issue nowadays. And Indy 11 will be dropping support for old Delphi versions anyway, so its possible that enabling SVN is the latest, yes (with mirrors on GitHub), but OPM is not far behind the latest. The OPM author is pretty good about resyncing OPM fairly quickly after a new SVN checkin. |
I got it.
I think this is a good idea. Thanks for the tips. |
|
Hello, if it's a Delphi version problem, you should add a $IF CompilerVersion to define or not the FREE_ON_FINAL |
|
I can't do that, as I don't know which specific versions are actually affected. Nor do I know if the problem is truly gone in all possible scenarios, for that matter. |
Uh oh!
There was an error while loading. Please reload this page.
I'm using FPC 3.1.1, Lazarus 1.9 and Indy 10 on Windows.
I got an issue very strange for me. I have no memleaks in my project, but If I add an Indy unit, eg. IdPOP3, I got 3 memleaks (I can see using heapdtrc).
First, I thought that my code was wrong, because if I open a new one and do the same (drop a component on Form) I have no memleaks. I spent 2 hours to find out that the problem is in
IdStackandIdThreadunits."only enable this if you know your code exits thread-clean"
Is this make any sense?
IMHO, of course we need to enable FREE_ON_FINAL... why not?
And why do we have an
*.incin each directory with the same information?All reactions