home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!munnari.oz.au!metro!archmac-167.arch.su.edu.au!user
- From: garry@archsci.arch.su.edu.au (Garry Stevens)
- Subject: Printing Regions
- Message-ID: <garry-040193190248@archmac-167.arch.su.edu.au>
- Followup-To: comp.sys.mac.programmer
- Sender: news@ucc.su.OZ.AU
- Nntp-Posting-Host: archmac-167.arch.su.edu.au
- Organization: Dept Architectural Science, Uni of Sydney
- Date: Mon, 4 Jan 1993 08:10:13 GMT
- Lines: 21
-
- I am having trouble with printing, regions and off-screen bitmaps (with
- THINK Pascal 4.1). I construct my regions and then use the technique in
- Tech Note #41 on drawing to an offscreen bitmap. This works fine for the
- screen. The problem arises when I try to do the same for the Laserprinter.
- I use exactly the same code. The regions are properly constructed, copied
- and even printed just fine. But over the bottom third of the screen (and
- overlapping the drawn area) is a random collection of junk, looking like
- CopyBits copied too much and picked up some memory it should not have.
-
- I also keep running into out of memory errors after I leave a (different)
- printing process. THINK Pascal stops just before a TECalText call after the
- printing is finished and it is updating the window. I do all the
- (apparently) right things of closing the document, etc as per Tech Note
- #161. Using the Observe window I call FreeMem and it shows 205K free.
-
- Thanks for the assistance.
-
- Garry Stevens
- Dept of Architectural & Design Science
- University of Sydney
- Australia
-