Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MDI...problem dealing with create

Status
Not open for further replies.

LeGrosBobey

Programmer
Mar 13, 2001
1
CA

Here is my procedure....i'm getting out of a menu form
and want to open a Password(MotPasse) form. it goes this way...no problem opening frmRem but when it comes to frmMotPasse, it crashes. Even if I delete this line :
frmRem:=TfrmRem.Create(self);, it's still crashes on the frmMotPasse creation. By the way the error message is

EAccesViolationError Access violation at address 004546DC in module MDIAPP.exe. Read of adress FFFFFFFF

procedure TfrmPrincipal.btRemorqueClick(Sender: TObject);
begin
frmPrincipal.DestroyWindowHandle;
frmRem:=TfrmRem.Create(self);
frmMotPasse := frmMotPasse.Create(self);
bRemorquage := true;
end;
 
i have that same problem. it seems that the problem occurs whenever you close the mdi child form. cause the traces stop there.

sorry, i have not found the solution yet.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top