I consider the array-sans-index to be one of the most common and difficult bugs. I wish it were one the compiler could trap and report, at least as a warning if not an error. e-e =J= a y " On Sunday, September 19, 2004, at 11:14 AM, Richard Goodman wrote: > OhmyGod!!! > > I can't believe I overlooked that. > > Thanks Bernie. You are so right > > It sure helps to have others look at one's code. > > I'm back in business. > > Richard > > > I had written: > >> The program is crashing when program flow reaches the first COPYBITS >> line in the fragment below: >> >> dragRect;8 = @gIconRect(iconNum) >> >> CALL COPYBITS(#bgGWPtr&+2, #stageGWPtr&+2, dragRect, gIconRect, >> _srcCopy, 0) >> //************** Above line causes a crash. ******************* >> <snip> >> >> Any suggestions? > > > Bernie Wylde wrote: > >> Shouldn't gIconRect be gIconRect(iconNum)? > >> bw > > -- > >