home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!bnr.co.uk!uknet!mcsun!sun4nl!wtrlnd!nextjk!fidonet!p15.f202.n281.z2.fidonet
- From: Vincent_Partington@p15.f202.n281.z2.fidonet
- Newsgroups: comp.sys.atari.st.tech
- Subject: What use is the AP_TERM message?
- Message-ID: <2b444d52@p15.f202.n281.z2.fidonet>
- Date: 1 Jan 93 13:48:50 GMT
- Reply-To: p15.f202.n281.z2.fidonet!Vincent_Partington@nextjk.wlink.nl
- Lines: 29
- X-FSC-PID: LED 1.00
-
- Hi everyone,
-
- I had a chance to have a look at MultiTOS at a friend who is an official
- MultiTOS beta-tester and I was very impressed by it.
- While I was there I had a look at some of the very interesting
- documentation that goes with it and a saw in GEM.DOC that there are some
- new events: WM_UNTOPPED, WM_ONTOP, AP_TERM and some others.
-
- I thought AP_TERM was very interesting until I tried it out; I had my own
- program catch that event and respond appropiately by quitting, AFTER
- cleaning up some stuff.
- But I found out that an AP_TERM message nearly never gets delivered, Mint
- just gives you a signal when you're supposed to quit (for example if the
- user deletes your process from U:\PROC\) and because my program didn't
- catch signals it was just terminated without getting an opportunity to
- clean up some things. Now I don't mind catching the signals but I was just
- wondering what the use of AP_TERM is if you never get it....
-
- According to the documentation you get it when the system shuts down or
- when the resolution changes. However, the resolution only changes when all
- programs have already quit (just try changing the resolution from the
- desktop, you'll see what I mean) and there's no way (yet) to shut down the
- machine. So what use is AP_TERM??
-
- Ta!
- Vincent
-
- --- MARSmail v1.20/4D
- * Origin: GigaMusic, the best music player money doesn't need to buy (2:281/202.15)
-