Image cache question

Phil Jimmieson phil at liverpool.ac.uk
Wed May 21 10:08:12 EDT 2014


Hi Ben,
thanks. That works perfectly. No complicated commands or anything.

On 21 May 2014, at 15:01, Benjamin Beaumont <ben at runrev.com> wrote:

> Hi Phil,
> 
> This was discussed by the team at the time. There is no special handling
> for the changing of images currently referenced by the cache. I spoke to
> one of the engineers and he suggested unsetting the reference to the image
> as the cache will release images that no longer have a reference. Reseting
> the filename will cause the image the be recached in it's new form.
> 
> Warm regards,
> 
> Ben
> 
> 
> On 21 May 2014 12:52, Phil Jimmieson <phil at liverpool.ac.uk> wrote:
> 
>> Hi folks,
>> as far as I understand it, with the new image caching features of LiveCode
>> 6 and later, images are loaded into a cache based on their full filename
>> and then every reference to that image in LiveCode uses the cached copy.
>> I've got an image on disk that is used in my program, and the image on disk
>> is subject to change. It seems though, that once I've loaded the image once
>> (via a referenced image on a card), no attempt is made by LiveCode to fetch
>> the image from disk again and I can't figure out a way to force it to get
>> the new version of the image. Is there a way to flush an image from the
>> cache so that the next time the image is fetched it is loaded from disk and
>> not from the image cache, or is the only solution to change the filename
>> each time? The LiveCode program in questions is supposed to run on Mac and
>> Windows (though at some point, this may bite me on iOS too).
>> 
>> Thanks
>> --
>> Phil Jimmieson  phil at liverpool.ac.uk  (UK) 0151 795 4236
>> Computer Science Dept., Liverpool University, Ashton Building, Ashton
>> Street
>> Liverpool L69 3BX              http://www.csc.liv.ac.uk/~phil/
>> I used to sit on a special medical board... ...but now I use this ointment.
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> 
> 
> 
> -- 
> _____________________________________________
> 
> Benjamin Beaumont . RunRev Ltd
> 
> LiveCode Product Manager
> mail : 25a Thistle Street Lane South West, Edinburgh, EH2 1EW
> email : ben at runrev.com
> company : +44(0) 845 219 89 23
> fax : +44(0) 845 458 8487
> web : www.runrev.com
> 
> LiveCode - Programming made simple
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Phil Jimmieson  phil at liverpool.ac.uk  (UK) 0151 795 4236
Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
Liverpool L69 3BX              http://www.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this ointment.








More information about the Use-livecode mailing list