Xref: utzoo comp.sys.mac:27279 comp.sys.mac.programmer:4716 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!ra_robert@gsbacd.uchicago.edu From: ra_robert@gsbacd.uchicago.edu Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: LSP and Think Pascal Message-ID: <2001@tank.uchicago.edu> Date: 24 Feb 89 17:56:58 GMT Sender: news@tank.uchicago.edu Distribution: usa Organization: University of Chicago Graduate School of Business Lines: 29 In article <1232@osupyr.mast.ohio-state.edu>, pgn@osupyr.mast.ohio-state.edu (Paul G. Nevai) writes... >I had an FKey made in LSP 1.11a and worked perfectly. It contains >a shoutdown manager call. When I ported it to LSP 2.0 it still works >in the project but when I compile it in the reduced library setting >the shutdown call doesn't work anymore. WHY? I have a question along similar lines: what is going on differently when you run within the project and when you compile and run outside? Specifically, I've got a situation where I create a simple modeless dialog and then invalidate its portRect. This works fine in the project, but bombs on invalRect when I've compiled it and run it as an app. I compiled it in the project without the Debug option, and the assembly language right around the invalRect call seems the same both in the project and out. I checked what was going on both with Lightsbug in the Proj and with TMON outside and what's being passed to the call seems fine. I am at a bit of a loss. It must be an error somewhere else in my program, but I have no idea why it would cause an error (out of memory) on an InvalRect call. The dialog ptr seems valid, and if I take out the InvalRect call the program compiles and runs fine. What's getting me is: why does it run fine with this call _in_ the project, and crash outside? Robert ------ ra_robert@gsbacd.uchicago.edu ------ generic disclaimer: all my opinions are mine