wrote:
> To clarify my problem I will give an example of what I'm really trying
> to achieve:
>
> My application preloads images one after another when the user browses
> a gallery, so there are always 10 images loaded in advance. These
> images get shown immediately when the user reaches them, so she doesn't
> have to wait.
I think you're looking for a functionality like SQL's FLUSH or Perl's
buffer disable/clean on command. I don't believe this can be controlled
on-the-fly in browsers, though there are META-instructions to control
this on page-level:
<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="Thu, 8 May 2006 11:30:00 GMT">
(or whatever date)
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
> Now when the user had already browsed over 100 of images, I would like
> to delete some of them at the beginning of the 'playlist' and free the
> memory so my application can run this way for hours.
> How do I achieve this?
The whole idea is that a browser should do all this for you, so you
don't have to worry about it (ideally). I would advocate the use of
another computer language if you need this kind of low level memory
block access.
You could develop the gallery in Macromedia Flash, end let the SWF-file
handle its own memory objects (I believe this would stand apart from
the browser's memory allocation). I'm not sure if Flash/ActionScript
could go as low as influencing RAM on-the-fly. Maybe some Flash
Newsgroup could shed a light on this.
--
Bart