程序退出时出错:
提示信息如下:
---------------------------
Debugger Exception Notification
---------------------------
Project FYManageSystem.exe raised exception class EAssertionFailed with message 'Assertion failure (c:\program files\borland\delphi6\Lib\Classes.pas, line 9376)'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
请问可能是哪方面的错误?
procedure TComponent.FreeNotification(AComponent: TComponent);
begin
if (Owner = nil) or (AComponent.Owner <> Owner) then
begin
// Never acquire a reference to a component that is being deleted.
assert(not (csDestroying in (ComponentState + AComponent.ComponentState))); //9376行,出错的那一行.这个Classes.pas用的是Delphi6 RT Update3的
if not Assigned(FFreeNotifies) then FFreeNotifies := TList.Create;
if FFreeNotifies.IndexOf(AComponent) < 0 then
begin
FFreeNotifies.Add(AComponent);
AComponent.FreeNotification(Self);
end;
end;
Include(FComponentState, csFreeNotification);
end;