🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15661

MDI Forms and when to free memory.

#15661
From: Jerel Thompson
Date: Fri, 20 Jun 2003 04:37
13 lines
1402 bytes
I am new to using MDI forms but for what I am trying to do they make sense.
So, I created a main form and a child form.  I make sure that CBuilder
doesn't initialize the child form because I want to do that manually.

When the user goes to the main menu and chooses File->New the following
happens:

TFormMyChild *ChildForm = new TFormMyChild(NULL);
ChildForm->Show();


This is all good for showing the form but I'm unsure of when/where I should
be deleting the memory once the form is closed?  Any suggestions?
Technical Details
Message-ID: <3ef28f7a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3101dd652c0854a9,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-19 21:41:12 PST
From: "Jerel Thompson" <nobody@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: MDI Forms and when to free memory.
Date: Thu, 19 Jun 2003 23:37:26 -0500
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.29.173.55
Message-ID: <3ef28f7a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056083834 65.29.173.55 (19 Jun 2003 21:37:14 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail