[fpc-devel] FreeInstance
Ben Grasset
operator97 at gmail.com
Wed Aug 1 18:04:19 CEST 2018
> On Wed, Aug 1, 2018 at 11:27 AM, Ryan Joseph <ryan at thealchemistguild.com>
wrote:
> Yeah, this is the first place I looked but current_structdef is always
nil so it never progresses past that point.
> Is this test program not enough to get FreeInstance called?
You need to declare a class, and give that class at least one method for
current_structdef to ever not be nil at all. You'll only specifically get
to the FreeInstance part after that if it has a destructor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20180801/cb4164e5/attachment.html>
More information about the fpc-devel
mailing list