home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20586 < prev    next >
Encoding:
Text File  |  1993-01-04  |  1.5 KB  |  34 lines

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