Hello Dennis,
DC> if FItems<>nil then FItems.Free;
DC> does nothing more than FItems.Free
It seems to, even tho helps says it is the same, it behaves differently.
DC> There is nothing wrong in that line of code - the items list is being
DC> freed - if you are getting an exception there, it might
uption.
- Original Message -
From: "Alistair George" <[EMAIL PROTECTED]>
To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2003 11:32 AM
Subject: [DUG]: Menus.pas Delphi 5 'Attempt to free a non-existing res
Hi all.
I have found a destroy resource problem which is indicated to be in menus.pas.
destructor TMenuItem.Destroy;
begin
ShortCutItems.ClearItem(Self);
if FParent <> nil then
begin
FParent.Remove(Self);
FParent := nil;
end;
while Count > 0 do Items[0].Free;
if FHandle <> 0 th