-메세지-
message 'Control' has no parent window. Process stoped. Use Step or run to continue.
동적으로 생성된 컨트롤에서 다른폼을 Show 한 후
Form1을 메모리에서 해제 시킬 때
위와 같은 애러가 생기네요.
문제가 되는 부분은 Control을 생성할 때 parent를 지정하는데서
나오는 문제인 것 같은데 그렇다고 지정을 안할 수도 없고
해결방법을 모르겠습니다.
begin
if Assigned(Form2) then
form2.show
else
begin
Application.CreateForm(TForm2, Form2);
form2.show;
end;
form1.Destroy;
form1 := nil;
end; //이 부분에서 애러 발생