home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14105 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.4 KB

  1. Path: sparky!uunet!gatech!rpi!uwm.edu!ogicse!reed!henson!news.u.washington.edu!milton.u.washington.edu!aph
  2. From: aph@milton.u.washington.edu (Al Hallstrom)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: CHK error  -HELP
  5. Message-ID: <1992Aug17.213020.21649@u.washington.edu>
  6. Date: 17 Aug 92 21:30:20 GMT
  7. Article-I.D.: u.1992Aug17.213020.21649
  8. Sender: news@u.washington.edu (USENET News System)
  9. Reply-To: aph@u.washington.edu
  10. Distribution: usa
  11. Organization: University of Washington, Seattle
  12. Lines: 20
  13.  
  14. I'm using THINK C 5.0 on a Mac IIsi using System 7. I've written a program
  15. that gets a window from a resource file.  It draws to and erases the window. 
  16. Then I disose the window.  Later in the program I call it back using the same 
  17. WindowPtr and resouce ID. Anyway my program crashes. I've used the debugger and the address doesn't get screwed up there.  So what I've been doing
  18. is commenting out code to find out what the problem is. I commented out a 
  19. DrawString statement and this is what I get the next time I get the window:
  20. A dialog pops up with the following message.
  21.  
  22. Sorry a systemt error occurred
  23. "My Project"
  24. CHK error
  25.  
  26. What is a CHK error? If anyone happens to know what else might be causing this
  27. I'd be grateful.
  28. One other thing.  I have not initiated the toolbox or anything.  My first call
  29. is "char = getchar()".  I am only using the window to draw to.
  30.  
  31. Respond to aph@u.washington.edu.
  32.  
  33. Thanks in advance.
  34.