Here is an interesting reading: http://blogs.codegear.com/abauer/archive/2006/11/01/28852.aspx Maybe, the suggested FreeAndNil implementation can be usefull. See in comments.

BTW: Is the bellow afirmation also valid for fpc??

"we alluded to the fact that while the constructor of an object is executing, if any exception is raised the destructor will automatically be called, the object will be freed and the exception is allowed to continue on its merry way."

Complete story here: http://blogs.codegear.com/abauer/archive/2006/11/03/28916.aspx

Luiz
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to