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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!snorkelwacker.mit.edu!tamsun.tamu.edu!zeus.tamu.edu!wwg2101
  3. From: wwg2101@zeus.tamu.edu (GILPIN, W.W.)
  4. Subject: Re: THINK Pascal- program crashes only when stand-alone
  5. Message-ID: <18NOV199214315539@zeus.tamu.edu>
  6. News-Software: VAX/VMS VNEWS 1.41    
  7. Sender: wwg2101@zeus.tamu.edu (GILPIN, WESLEY WILSON)
  8. Organization: Texas A&M University, Academic Computing Services
  9. References: <BxtpwD.CAn@news.udel.edu> <BxvoJB.Jpv@world.std.com>
  10. Date: Wed, 18 Nov 1992 20:31:00 GMT
  11. Lines: 22
  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.  
  19. >I would get different answers to a matrix problem depending on whether I
  20. >was running under Turbo or in a stand-alone application. I found out that
  21. >I hadn't locked a Handle properly--in the stand-alone version a memory
  22. >block was being moved unexpectedly and my handle was pointing to garbage.
  23.  
  24. I agree. I had the same problem with a THINK C program i've been working on.
  25. I loaded in some bitmaps from a resource and it worked just fine, but when I
  26. built the stand-alone, it crashed because the pointers I was using were invalid
  27. after the blocks were moved. Always make sure that you lock the memory that you
  28. expect to see in the same place all the time.
  29.  
  30. -------------------------------------------------------------------------------
  31. | Wes Gilpin              | I'd kill myself for you...I'd kill you for myself |
  32. | WWG2101@TAMZEUS(BITNet) |------------------------------------------         |
  33. | WWG2101@ZEUS.TAMU.EDU   | Southwest Knights of Nee Paintball Team | PANTERA |
  34. -------------------------------------------------------------------------------
  35.