home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / atari / st / tech / 6911 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.6 KB  |  34 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!ilepore
  3. From: ilepore@nyx.cs.du.edu (Ian Lepore)
  4. Subject: Re: GEM Execution Problem
  5. Message-ID: <1993Jan28.062910.9739@mnemosyne.cs.du.edu>
  6. X-Disclaimer: Nyx is a public access Unix system run by the University
  7.     of Denver for the Denver community.  The University has neither
  8.     control over nor responsibility for the opinions of users.
  9. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  10. Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
  11. References: <1993Jan27.174804.14975@cs.hw.ac.uk>
  12. Date: Thu, 28 Jan 93 06:29:10 GMT
  13. Lines: 19
  14.  
  15. > running a GEM program from within a GEM program, to time it.
  16.  
  17.  Leaving aside for a moment the fact that timings of event-driven programs
  18. in a cooperative multitaksing environment aren't likely to be very accurate...
  19.  
  20.  The main thing you need to do is Dsetdrv() and Dsetpath() before the 
  21. Pexec(), so that the drive/path of the program you're about to run is the
  22. drive/path of the program itself.  That'll let the program find its RSC file.
  23.  
  24.  Be sure to make the screen look more or less like the desktop does: make
  25. sure the mouse is on, and starts out as a BEE shape, make sure your menu
  26. bar (if any) is off.  Make sure you aren't holding any wind_update() 
  27. semaphors.  Do an appl_exit() last thing before the Pexec() call, and 
  28. an appl_init() first thing after it returns.  Right after the appl_init()
  29. do wind_new() and wind_set(0, WF_NEWDESK, NULL, NULL).  I think that's 
  30. everything you need to do before and after.  (Except shel_write() calls,
  31. which I'm waiting for Atari to bless, more on that later.)
  32.  
  33.  
  34.