D7主动态创建窗体失败,请各位大侠指点
程序代码:
If Not Assigned(qryForm) Then
qryForm := TqryForm.Create(Self);
If qryForm.ShowModal = mrOK then
........................
其中qryForm 是另外定义的一个窗体,在运行时创建,
下面是运行时的异常提示:
---------------------------
Debugger Exception Notification
---------------------------
Project ReadSMS.exe raised exception class EAccessViolation with message 'Access violation at address 77F9ADCA in module 'ntdll.dll'. Write of address 00405205'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
记得以前在D6中这样做是没有问题的,为什么到了D7就不行了呢?
或者是由于我使用D版的缘故?