home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!psinntp!dlogics!emh
- From: emh@dlogics.com (Ed Hovorka)
- Subject: Exit program then weirdness
- Organization: Datalogics, Inc.
- Date: Tue, 08 Sep 92 21:32:45 GMT
- Message-ID: <1992Sep08.213245.16781@dlogics.com>
- Keywords: exit
- Lines: 33
-
-
- I was wondering if anyone else has this problem. I work on a 16-bit PM
- program that was developed and runs fine under OS/2 1.x. Under OS/2 2.0,
- after the program exits normally, the program sometimes leaves the hash
- marks under the icon in the program's folder. OS/2 also keeps related
- files locked. It obviously thinks the program is still running. It is not
- easy to recreate, but it happens enough to disturb people who use the
- program. The only thing I can think of that might be of interest is the
- DosExitList. When I removed the exit handler, I never saw the problem, but
- since it is a rare problem, maybe I didn't test long enough. The bottom
- line is that I need to have an exit handler installed. Maybe OS/2 2.0 has
- a problem with this. Again, this program works fine under OS/2 1.3. I'm
- not necessarily looking for a solution, although one would be nice :) , but
- I'm mostly interested in other people who see the same or similar problems
- on the exit of a program.
-
- From MS C 6.0 BSEDOS.H
- #define EXLST_ADD 1
- #define EXLST_EXIT 3
-
- My exit handler is set up with:
- DosExitList( EXLST_ADD, ExitHandlerRoutine );
-
- WinDdePostMsg is getting called in the exit handler.
-
- My exit handling routine does end with:
- DosExitList(EXLST_EXIT, NULL);
-
-
- --
- | Ed Hovorka // Drone // Datalogics, Inc. // emh@dlogics.com
- | "Mmmm... Laura Palmer"
- | - Homer Simpson after seeing Twin Peaks: Fire Walk With Me
-