🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: log off/ application terminate

#15999
From: Duane Hebert
Date: Tue, 03 Jun 2003 19:01
35 lines
2390 bytes
> It is not.  However, your form's destructor should still execute properly.
> All Application->Terminate() does is calls PostQuitMessage() which posts a
> WM_QUIT message to the message queue, nothing else.  There are other
system
> messages associated with system logoff/shutdown that the VCL does respond
to
> as well, so it can still clean up after itself properly.

I'll have to do some more testing but it doesn't seem like the dtor is being
called.



> > This is actually a control application and it
> > needs to run without interruption if possible.
>
> Then I suggest you re-write the core of the application into a true
non-GUI
> service app, and then move just the GUI portions into a separate app that
> can communicate with the core service via IPC (inter-process
communication,
> such as TCP/IP sockets, named pipes, RPC, etc.) when needed.

That's about what I was thinking.  There is a fairly good division between
control code and
GUI code and we also use a remote GUI that works over TCP packets so it
shouldn't be
so difficult to deal with it.  The app is eventually going to be run on an
xp embedded target.  In that case, we can limit what windows will be doing a
bit.
We've been waiting for Siemens drivers that work with XP but I think they're
out now.

Thanks for the feedback.
Technical Details
Message-ID: <3edcf095$3@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!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f4b8abe1a2fab575
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-03 12:06:35 PST
From: "Duane Hebert" <duane@nitrex.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edccd80@newsgroups.borland.com> <3edcd422$1@newsgroups.borland.com> <3edcdbb6@newsgroups.borland.com> <3edcea6f$1@newsgroups.borland.com>
Subject: Re: log off/ application terminate
Date: Tue, 3 Jun 2003 15:01:43 -0400
Lines: 37
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: 199.243.88.188
Message-ID: <3edcf095$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054666901 199.243.88.188 (3 Jun 2003 12:01:41 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail