delphi2007 教程

delphi2007 教程

首页 新随笔 联系 聚合 管理
  1013 Posts :: 0 Stories :: 28 Comments :: 0 Trackbacks
请问,关闭子窗口提示错误,大家遇到这样的问题吗? Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiBase/html/delphi_20061207133720244.html
关闭子窗口时总是提示下面的错误:  
  Access   violation   at   address   00000008.   Read   of   address   00000008  
   
  Project   Project1.exe   raised   exception   class   EInvalidPointer   with   message'Invalid    
  pointer   operation'.   Process   stopped   .Use   Step   or   Run   to   contine.  
   
  我在窗口Close事件中加了:Action   :=   caFree;还是提示这样的错误!  
 

看看对象是不是都释放了,提示有无效的指针

同意楼上的

就有两个全局变理,我都释放了!应该就可以了吧?

在对象释放时,补上一句Form1:=nil;把你的Form或其它对象也这样处理

onclose:  
  Action   :=   caFree;  
  form1:=nil;

支持楼上的~

有没有使用第三方控件?

posted on 2009-02-11 16:49 delphi2007 阅读(432) 评论(0)  编辑 收藏 引用
只有注册用户登录后才能发表评论。