请问,关闭子窗口提示错误,大家遇到这样的问题吗?

请问,关闭子窗口提示错误,大家遇到这样的问题吗? 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:47  delphi2007  阅读(249)  评论(0编辑  收藏  举报