Page 1 of 1

ZSequence.pas Bug 6.6.0 & 6.6.1

Posted: 01.03.2007, 00:29
by madh
Unit: ZSequence.pas
Line: 172

Old
FreeAndNil(FSequence); // FSequence: IZSequence;

New
FSequence := nil;

Exists in 6.6.0 and 6.6.1.

Posted: 01.03.2007, 10:22
by mdaems
Can you please tell what's wrong with the old code and why you would change it?

If you want we keep track of this bug you should log it with some more information in the bugtracker. (zeosbugs.firmos.at)

Mark

Posted: 01.03.2007, 17:58
by btrewern
I think he means it's an interface and will release itself if you set it to nil.

Regards,

Ben

Will do

Posted: 01.03.2007, 18:11
by madh
Brand new to these forums. I will definitely spend some time and read the proper steps for reporting bugs.

To clearify, the code was calling FreeAndNil on an interface variable. I would get an Access Violation. I assume the object used to be a class but now is an interface.

Dave.

Posted: 04.03.2007, 09:49
by mdaems
Hi Dave,

I just changed this. (SVN testing branch rev. 224) I hope it didn't break up anything.

Mark