L
lixianxiang
Unregistered / Unconfirmed
GUEST, unregistred user!
我在Project->Options的Forms選項卡下
將form1從Auto-create forms 移到 Availiable forms后,運行后點擊按鈕調用form1時就會出現
Debugger Exception Notifiction框:
Project MES.exe raised exception class EAcessViolation with message 'Access violation at address 004D9DDF in module 'MES.exe'. Read of addresss 00000000'. Process stopped. Use step or run to continue.
調用該窗體的代碼是: form1.showmodal; 關閉時: action:=cafree;
參考書,這樣可以呀,就是在調用窗體時,form1才被創建,關閉時就釋放.
但是將form1從Availiable forms 移到 Auto-create forms 后,又正常了,什麽原因啊?哪位高手請指點一下,謝謝了
將form1從Auto-create forms 移到 Availiable forms后,運行后點擊按鈕調用form1時就會出現
Debugger Exception Notifiction框:
Project MES.exe raised exception class EAcessViolation with message 'Access violation at address 004D9DDF in module 'MES.exe'. Read of addresss 00000000'. Process stopped. Use step or run to continue.
調用該窗體的代碼是: form1.showmodal; 關閉時: action:=cafree;
參考書,這樣可以呀,就是在調用窗體時,form1才被創建,關閉時就釋放.
但是將form1從Availiable forms 移到 Auto-create forms 后,又正常了,什麽原因啊?哪位高手請指點一下,謝謝了