Bruce, I've used that code successfully with pGbuild, so the problem probably lies elsewhere. I'm not sure what else you are doing (in your code---like allocating data with Newhandle etc.), so it is difficult to assess. I'm assuming when you say QUIT that it really has a failure but you just don't see it. Do you have MacsBug installed? This will trap most of these failures and give you an idea where it is failing. Maybe you should turn on "array bounds checking" temporarily to check that possibility. Maybe you can post the code that builds the window. I'll be happy to take a peek and see if my meager skills can uncover something for you. Brian