form调用出错,请帮忙看一下(50分)

C

catcher

Unregistered / Unconfirmed
GUEST, unregistred user!
我用一个菜单调用了如下代码
operation22:=operation22.create(self);
operation22.showmodal;
build all projects的时候没有问题
但点击该菜单的时候
出现
raised exeception class Eaccessviolation with message
'Access violation at address 004A3A37 in module 'manage.exe'.
read of address '00000000'错误,
怎么样才可以避免这种情况呢
 
operation22:=Toperation22.create(Application);
 
mid是不可以showmodal的
如果是fsNormal的话
用过之后要Release


 
operation22:=Toperation22.create(self);
 
都不行的,
不是mid
我看到过程序就是用
operation22:=operation22.create(self);
operation22.showmodal;
完成的,,
但没有那种问题
请再分析一下
 
多人接受答案了。
 
你接受答案了,也不说一下哪个答案是对的?
 
顶部