[fpc-devel] FreeInstance

Ryan Joseph ryan at thealchemistguild.com
Thu Aug 2 00:21:25 CEST 2018



> On Aug 1, 2018, at 3:28 PM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> If you'd look at the code you quoted you'd see that this is only inserted *inside* a destructor (the check for potype_destructor; current_procinfo is the currently compiled routine). So, no, your code is not enough. You need to declare a class with a destructor, then the code would be entered. 
> 

Now I see what’s happening! I would have caught this before but I had the class in another unit so it was compiled before I ran the debugger and I never got inside the destructor.

Thanks guys.

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list