🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Window (Form) has been closed, but Process stuck

#10396
From: Boba
Date: Tue, 27 Apr 2004 15:21
25 lines
1895 bytes
"Sergey Muschin" <sergey.muschin@tonservices.com> wrote in message
news:408d2580$1@newsgroups.borland.com...
> Hello everyone!
> ...
> Application->Run() has been terminated, but yet the process stuck.
>
> What could be the cause ?

Have all the threads terminated? I mean all but the main one.
If there are any threads created on behalf of your process
still running, you will see what you're talking about. You
use some 3rd party (TWAIN) software; does it create any
threads for its needs? Check for any async.requests pendidng
too.

>
> Is there any way to make an application to exit clean?

No, unless you are the OS itself. "Clean enough" in many cases
might just be releasing all the memory allocated, close all the handles
opened, unload all the modules loaded, and terminating all the threads
started. This list may be extended to flushing the buffers, restoring
user modes (say video mode), resetting devices used, etc...

Boba
Technical Details
Message-ID: <408e7a33@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <408d2580$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,aeb09e3e39984ae3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-27 08:26:25 PST
From: "Boba" <Boba@somewhere.world>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <408d2580$1@newsgroups.borland.com>
Subject: Re: Window (Form) has been closed, but Process stuck
Date: Tue, 27 Apr 2004 10:21:56 -0500
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 208.210.156.217
Message-ID: <408e7a33@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1083079219 208.210.156.217 (27 Apr 2004 08:20:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail