|
void __fastcall TForm::CreateForm()
{
/ /동적 폼 생성
frmCreate = TfrmCreate(this);
//... 중략
frmCreate->Close();
}
이렇게 했을 경우와
void __fastcall TForm::CreateForm()
{
/ /동적 폼 생성
frmCreate = TfrmCreate(this);
//... 중략
frmCreate->Close();
delete frmCreate; <-- 추가
}
이렇게 했을 경우의 차이점과 어떻게 하는것이 맞는건지 설명 부탁합니다.
|