Hmm, it seems like you're coding it like this:
code:
function Initialize([params]): boolean
var frmForm : TfrmForm;
begin
frmForm = TfrmForm.Create(nil);
end;
This way the form will be deleted after Initialize finishes. When you declare frmForm as a global variable, it won't be deleted.