程序退出时出错:

Iamfish Iamfish 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
提示信息如下:
---------------------------
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;
...全文
评论 4
收藏 已收藏
分享
返回顶部
Iamfish
Delphi 5,945 成员 262,941 内容