Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!casseres@apple.com From: casseres@apple.com (David Casseres) Newsgroups: comp.sys.mac.programmer Subject: Re: Basic Printing - Help Message-ID: <14027@goofy.Apple.COM> Date: 12 Jun 91 16:46:51 GMT References: Sender: usenet@Apple.COM Organization: Apple Computer Lines: 17 In article , coxr@piccolo.ecn.purdue.edu (Richard L Cox) writes: > > PrintStuff() > { > TPPrPort myPrPort; > THPrint prRecHdl; > > PrOpen(); > PrintDefault(prRecHdl); There's your problem. You must allocate storage for the handle before passing it to PrintDefault. Otherwise, it's a garbage value which points to something somewhere, which in turn points to some memory somewhere, which PrintDefault will trash by filling it with default print record values. Results are, as they say, unpredictable. David Casseres