At 2:03 PM -0600 4/2/02, Alex Harper wrote: >So you're using DoAppleScript? Or generating the events directly? > >I've found that you can corrupt MacPerl's heap pretty easily if you're >using events directly and not disposing of the AppleEvent descriptors >properly (AEDisposeDesc). 5.6.1r1 seems to be a lot more sensitive that >5.2.0r4 to this problem (which is, of course, not MacPerl's fault, I >should always have disposed properly).
This is all the same thing. In my experience RotateCursor crashes are from as much from not disposing of descriptors (memory leak) but more often from double-disposing them. I think that is probably what is happening in DoAppleScript. Overall, I've found Apple Events to be a real pain. I wish Apple had come up with something easier to use. But as Chris pointed out Mac::Glue rocks. Unless you're trying to write something that will work under 9 & X. -Andrew --