home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18544 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!pageworks.com!world!reuber
  3. From: reuber@world.std.com (kent b reuber)
  4. Subject: Re: THINK Pascal- program crashes only when stand-alone
  5. Message-ID: <BxvoJB.Jpv@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <BxtpwD.CAn@news.udel.edu>
  8. Date: Tue, 17 Nov 1992 20:49:59 GMT
  9. Lines: 28
  10.  
  11. kurisuto@chopin.udel.edu (Sean J. Crist) writes:
  12.  
  13. >Without going into the specifics, here's my general problem.  I have a
  14. >program which functions fine when running within the THINK Pascal
  15. >development environment, but which crashes when compiled as a stand-alone
  16. >application.
  17.  
  18. >What could be causing this?  How can I even attack the problem when I
  19. >don't have THINK Pascal's programming tools to see why this stand-alone
  20. >program is crashing?  I can't imagine that this is a bug in THINK Pascal,
  21. >but it seems that the simulated run environment ought to be realistic
  22. >enough that any problems which a stand-along application is going to
  23. >have will be apparent in the simulated environment as well.
  24.  
  25. >--Kurisuto
  26.  
  27. It's hard to say without knowing what your code does. However, I had a
  28. similar experience several years ago with Turbo Pascal for the Mac, where
  29. I would get different answers to a matrix problem depending on whether I
  30. was running under Turbo or in a stand-alone application. I found out that
  31. I hadn't locked a Handle properly--in the stand-alone version a memory
  32. block was being moved unexpectedly and my handle was pointing to garbage.
  33. You might look into this.
  34. -- 
  35. Kent Reuber                   | Schepens Eye Research Institute
  36. Computer Operations Manager   | 20 Staniford St.
  37. reuber@world.std.com          | Boston, MA 02174
  38. reuber@cdv.eri.harvard.edu    |
  39.