home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4829 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.7 KB  |  44 lines

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