[fpc-pascal] Re: Need help fixing leaks
leledumbo
leledumbo_cool at yahoo.co.id
Tue Dec 21 13:10:26 CET 2010
> At least one issue seems to be that all your TFPGObjectLists are owners of
> their respective instances. This leads to multiple attempted Free() calls
> to the objects in the list. If I am correct, there are/will be up to three
> Free() calls for some objects in your example code.
> I may be wrong, I did not really debug the code, just from looking at it.
Actually, I realize that too. So I'm refactoring the classes now. This is
quite difficult since I may generate a constant on the fly (encapsulated by
a class) and in other time a reference to an instruction previously created.
Who is responsible to free who is the problem.
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Need-help-fixing-leaks-tp3312878p3313416.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
More information about the fpc-pascal
mailing list