Does any one have a clue to this memory problem, Surely some else has come across this before!! is it a bug in ASS?
Failing an answer. is there a clear cut way for a pure novice such as myself to be shown how to add the images to the cell using object c in the applescript app.
So I can use alloc and release?? ( P.s should I start a new thread ?)
alloc is automatically done when you load your image,
but you need to delete it after use (no autorelease in AS) or you memory will increase!!!
make a test with big pictures, and take a look to Activity Monitor (memory use), it’s awfull
I found this subroutine in my app
-- ???: COMMUN - ReleaseImage
on ReleaseImage(l_ImageView) --release d'une view image (donner la view image comme arg)
-- http://developer.apple.com/documentation/AppleScript/Reference/StudioReference/sr3_app_suite/sr_app.html#//apple_ref/doc/uid/20011217-ASKApplicationSuite.Commands.LoadImage
-- Get a reference to the old image, if there is one
set oldImage to image of l_ImageView
-- Delete the old image (use try block in case no image)
try
delete oldImage -- release
end try
return
end ReleaseImage
I do not think you read any of my previous posts.
I know all about the load and delete image. But I am still getting a memory issue where the memory increases even though the loaded images are deleted.
So my question and request for help is:
Does any one have a clue to this memory problem, Surely some else has come across this before!! is it a bug in ASS?
Failing an answer. is there a clear cut way for a pure novice such as myself to be shown how to add the images to the cell using object c in the applescript app.
So I can use alloc and release?? ( P.s should I start a new thread ?)
sorry, should be my bad level of english
With this code I don’t have memory problem anymore (and I sometimes use hundred of files, but I never try with more than 200)
personnaly I didn’t manage to transfer “image AS id” to Cocoa, so I failed to release it in Cocoa