Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!andrew.cmu.edu!rk39+ From: rk39+@andrew.cmu.edu (Robert Joseph Kuszewski) Newsgroups: comp.sys.mac.programmer Subject: Strange THINK C foo Message-ID: <8aRn_aO00W0T4LuURl@andrew.cmu.edu> Date: 14 Jun 90 06:45:58 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 24 TWIMC, I've been experiencing some THINK C (v 4.0) problems, which I'm having a hard time explaining. It's probably something simple, but I need an answer. Here's the situation: I'm writing a program which can have several files (and windows) open at once. They are stored in a struct array with a bunch of other information. All the windows are stored as resources. I have compiled the program as an application and added the resources with RedEdit. On startup, the program should open a tools window and an untitiled working windoe. The first window opens just dandy. But when it tries to open the second, it hangs up completely. I can avoid this, if I send a new (dummy) window record to GetNewWindow. The problem is, when it gets into the main event loop, it crashes whenever I click in any of the windows (includeing the move/title bar). I think it's because of this screwed up window record thing. Is every window supposed to have it's own window record? I've never needed a seperate wRecord for each window before (when I programmed in Pascal). Any suggestions? Thanks in advance, Bob