ZSequence.pas Bug 6.6.0 & 6.6.1

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
madh
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 01.03.2007, 00:23

ZSequence.pas Bug 6.6.0 & 6.6.1

Post by madh »

Unit: ZSequence.pas
Line: 172

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

New
FSequence := nil;

Exists in 6.6.0 and 6.6.1.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
btrewern
Expert Boarder
Expert Boarder
Posts: 193
Joined: 06.10.2005, 18:51

Post by btrewern »

I think he means it's an interface and will release itself if you set it to nil.

Regards,

Ben
madh
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 01.03.2007, 00:23

Will do

Post 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.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi Dave,

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

Mark
Post Reply