[DUG] FreeAndNil

Ross Levis ross at stationplaylist.com
Wed Apr 20 15:57:33 NZST 2011


I seem to have problems using FreeAndNil under D7.

 

Using it with a TidFTP component that has been created manually, doing this
causes an access violation.

 

FreeAndNil(FTP);

 

I had to change it to.

 

FTP.Free;

FTP := nil;

 

Any ideas why this is?

 

Ross.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20110420/7a4f60d7/attachment.html 


More information about the Delphi mailing list