home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rpi!uwm.edu!ogicse!reed!henson!news.u.washington.edu!milton.u.washington.edu!aph
- From: aph@milton.u.washington.edu (Al Hallstrom)
- Newsgroups: comp.sys.mac.programmer
- Subject: CHK error -HELP
- Message-ID: <1992Aug17.213020.21649@u.washington.edu>
- Date: 17 Aug 92 21:30:20 GMT
- Article-I.D.: u.1992Aug17.213020.21649
- Sender: news@u.washington.edu (USENET News System)
- Reply-To: aph@u.washington.edu
- Distribution: usa
- Organization: University of Washington, Seattle
- Lines: 20
-
- I'm using THINK C 5.0 on a Mac IIsi using System 7. I've written a program
- that gets a window from a resource file. It draws to and erases the window.
- Then I disose the window. Later in the program I call it back using the same
- 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
- is commenting out code to find out what the problem is. I commented out a
- DrawString statement and this is what I get the next time I get the window:
- A dialog pops up with the following message.
-
- Sorry a systemt error occurred
- "My Project"
- CHK error
-
- What is a CHK error? If anyone happens to know what else might be causing this
- I'd be grateful.
- One other thing. I have not initiated the toolbox or anything. My first call
- is "char = getchar()". I am only using the window to draw to.
-
- Respond to aph@u.washington.edu.
-
- Thanks in advance.
-