Hi Folks,

I continue to track down random crashes with 2007r1. More and more  
are seemingly related to AppleEvents. It appears that just accessing  
the .count method of an AppleEventDescList can cause the program to  
crash. Of course, not all the time, just once in a while. I can  
usually do it about 5 times in my app before it crashes, and can't  
get it to do it at all when I pull out an example and try. But it  
appears identical in the crash log to the stringParam accessor bug.

Which isn't limited to just getting a stringParam out, but can also  
happen when setting a string param (and possibly other params, I  
haven't tested)

In any case, if you use apple events you need to do serious testing  
of those routines, specifically if you are getting or setting any  
stringparam's or using any AppleEventDescList's for anything. The new  
bug report number for the problems related to lists is:  aobuzdtz

THe work around for dealing with DescLists is more complicated  
because you dont have direct access to the pointer to it's underlying  
Desc. In order to get it you have to create a stub apple event, and  
use a declare with it's pointer to get the desc list out. But that is  
useless as far as any other RB structures are concerned, so you have  
to put it through another stub apple event to get back to a list if  
you make any changes. I will try to post some example code to the bug  
report this weekend if nobody beats me to it ;)

Thanks!
  James Sentman   http://www.MacHomeAutomation.com/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to