Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: OSALoad and leaking handle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSALoad and leaking handle



>Micah,
>
>I stepped over my call to OSALoad and discovered three similar blocks
>allocated in my application heap. Interestingly, only one pointed to my
>running application. The other two pointed to the "real" application living
>in the extensions folder (my app is an FBA, so I debugged the copy in my
>Output folder rather than the copy installed in the extensions folder).
>
>However, my blocks ended around position 0x100, just after the full path
>string. I suspect they are alias handles pointing back to the application,
>perhaps for continuation handlers. In an case, my cleanup code did release
>all three of the handles, as well as the other ten or so handles allocated
>by OSALoad.
>
>I wonder if OS or AppleScript versions could account for your handle being
>leaked. I am running 9.0.4 with AS 1.4.3. I don't have any other test
>system available right now, but perhaps AS 1.4.3 fixed the leak you are
>seeing.
>
>- Bill

Thanks! You reminded me I had OS 8.6 on one of my partitions and I tried
out my program running under OS 8.6(AppleScript 1.3.7). I had been running
OS 9.1(AppleScript 1.5.5 and 1.6b3). Under AS 1.3.7 no leaks occurred.
So, the problem must have been introduced between 1.4.3 and 1.5.5. Thanks
for helping me to track this down. Although if you get a chance I'd like
to hear your results under AS 1.5.5 or 1.6b3. Thanks again,
Micah


References: 
 >Re: OSALoad and leaking handle (From: Micah Koch <email@hidden>)
 >Re: OSALoad and leaking handle (From: Bill Peters <email@hidden>)
 >Re: OSALoad and leaking handle (From: Micah Koch <email@hidden>)
 >Re: OSALoad and leaking handle (From: Andy Bachorski <email@hidden>)
 >Re: OSALoad and leaking handle (From: Bill Peters <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.