🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Terminating the application

#13660
From: Elias
Date: Mon, 22 Sep 2003 23:53
28 lines
2029 bytes
Thanks Remy.

Your comment made us look for further cleanup code and I think we found the
problem.
Thanks again.
Elias B.
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f6b45f2$1@newsgroups.borland.com...
>
> "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: <3f6f8b23@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f6b1119@newsgroups.borland.com> <3f6b45f2$1@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-22 16:56:23 PST
From: "Elias" <elias.berelian@snet.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f6b1119@newsgroups.borland.com> <3f6b45f2$1@newsgroups.borland.com>
Subject: Re: Terminating the application
Date: Mon, 22 Sep 2003 19:53:14 -0400
Lines: 30
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: 64.252.113.0
Message-ID: <3f6f8b23@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1064274723 64.252.113.0 (22 Sep 2003 16:52:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail