🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Terminating the application

#13723
From: Remy Lebeau (TeamB)
Date: Fri, 19 Sep 2003 18:08
17 lines
1787 bytes
"Elias Berelian" <elias@snetnsa.com> wrote in message
news:3f6b1119@newsgroups.borland.com...
> Frequently when we exit the application the process in task
> manager stays on, causing problems with the next execution.

If the underlying process is still running, then you still have resources
open/allocated.  A process will not fully terminate until all handles have
been closed, all threads have been terminated, etc.  A form is just an
object like any other.  When you close a form, that is all you are doing,
that is all you are doing - closing a form.  It just happens that closing
the MainForm signals the message queue to stop processing messages as well
so that WinMain() can return.  But you still need to make sure that you are
managing your resources correctly so that everything is freed properly.


Gambit
Technical Details
Message-ID: <3f6b45f2$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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f6b1119@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a2fda7bfaecf72f8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-19 11:09:40 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f6b1119@newsgroups.borland.com>
Subject: Re: Terminating the application
Date: Fri, 19 Sep 2003 11:08:49 -0700
Lines: 19
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: 207.175.226.26
Message-ID: <3f6b45f2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063994866 207.175.226.26 (19 Sep 2003 11:07:46 -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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail