Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!ukma!gatech!uflorida!mailrus!eecae!cps3xx!usenet From: usenet@cps3xx.UUCP (Usenet file owner) Newsgroups: comp.sys.mac.programmer Subject: Re: Region Manipulation Message-ID: <722@cps3xx.UUCP> Date: 25 Sep 88 21:23:11 GMT References: <32028@gt-cmmsr.GATECH.EDU> Organization: Engineering, Michigan State U., E. Lansing MI Lines: 23 In-reply-to: sanjay@gt-cmmsr.GATECH.EDU's message of 24 Sep 88 21:49:20 GMT CopyRgn doesn't create a new region; both regions must have been created earlier. My quick guess is that your code looks something like: a := NewRgn(); b := a; /* set up the A region */ CopyRgn(a, b); What you really need to do is: a := NewRgn(); /* Create a new region */ b := NewRgn(); /* Another new region */ /* do stuff to A here */ CopyRgn(a, b); /* This puts a copy of A in B. */ (I tried to E-mail this but it bounced.) +----------------------------------+------------------------+ | Anton Rang (grad student) | "VMS forever!" | | Michigan State University | rang@cpswh.cps.msu.edu | +----------------------------------+------------------------+