Application.CreateForm(TForm2, Form2);
try
Form2.ShowModal();
finally
Form2.free;
Form2:=Nil;
end;
end;打开窗体正常...
但在关闭时form2时.
出现Poject data.exe raise exception class eInvalidPointer with message 
'invalid pointer operation',