home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / msdos / programm / 12334 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.4 KB  |  27 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!srvr1.engin.umich.edu!saimiri.primate.wisc.edu!usenet.coe.montana.edu!sandy
  3. From: sandy@cs.montana.edu (Sandy Pittendrigh)
  4. Subject: spawnl(P_OVERLAY,...)
  5. Message-ID: <1993Jan22.142010.29943@coe.montana.edu>
  6. Sender: usenet@coe.montana.edu (USENET News System)
  7. Organization: Dept. of Computer Science, MSU, Bozeman Mt 59717
  8. Date: Fri, 22 Jan 1993 14:20:10 GMT
  9. Lines: 16
  10.  
  11.     I'm trying to write an event-loop program that displays
  12. a series of "RectAreas" on the screen. Clicking the mouse
  13. on any one of these (in this case 4) rectangles would then
  14. call spawnl() to start any one of 4 other programs. 
  15.     My hope was to return control to the event loop after exiting
  16. any such program, so the mouse could then choose again. I was able 
  17. successfully call my programs with spawnl(P_WAIT, ...) but would
  18. then exit to never-never land. So then I tried spawnl(P_OVERLAY, ...),
  19.  which spawns successfully, but then exits to the dos prompt, rather 
  20. than back to the event loop.  So this is my question: Is this what
  21. spawnl(P_OVERLAY, ...) is supposed to do? (exit to the dos prompt). 
  22. Or am I failing to return to the event loop because of memory 
  23. overload?  (On a 386SX with 2 meg ram, Borland c++).
  24. /*=======================================================================*/
  25. /*                Sandy Pittendrigh  <Sandy@cs.montana.edu>              */
  26. /*=======================================================================*/
  27.