ShowModal 的对话框,多次反复打开/关闭后,出现问题,该如何解决?
我在动态库中,有这样一段代码:
frm1=new Tfrm1(Application);
frm1->ShowModal();
delete frm1;
frm1=NULL;
后经调试发现 在反复执行若干次(不定,有时候10多次,有时后几十次)后,出现下面的问题:
---------------------------
Debugger Exception Notification
---------------------------
Project test.exe raised exception class EOutOfResources with message '存储空间不足,无法处理此命令。
'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
请教各位高手,这是什么原因,该如何解决啊?