[fpc-pascal] How are Assigned, Free, Nil and Destroy related?
ludo.brands at free.fr
Sat Oct 22 09:33:25 CEST 2011
When the loop runs again Assigned in InitVars is false so as soon as those
FBreakStrings and SCStrings are accessed within the loop a SIGSEGV occurs.
So what I want to know is whether Assigned remains true when Free is
See my previous answer.
There is a helper function "procedure FreeAndNil(var obj);" that calls
obj.free and sets obj to nil. So instead of SCStrings.Free; SCStrings:=nil;
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal