[Javascript] virual memory proeblem

Troy III Ajnej trojani2000 at hotmail.com
Sun Sep 10 03:55:18 CDT 2006


I think,
the first thing to do is make sure the script tag resides inside the document body.
(the place where it legally belongs)
Second thing to do is, modify your script to call the preloader function only once, not 
every time you run the script.
If this fails the third thing in mind would be to use "meta" expire at least every hour.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                         Troy III                           progressive art enterprise~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


From: riegel at clearimageonline.comSubject: Re: [Javascript] virual memory proeblemDate: Sat, 9 Sep 2006 17:07:53 -0400To: javascript at LaTech.eduThis may not be a good solution, but what if you reloaded the page every hour, wouldn't that clean out any stuff that isn't being used on that page and start fresh?

Terry



On Sep 9, 2006, at 7:03 AM, suresh kumar wrote:

Hi,
   thxs for reply,but we are not only displaying only the image ad ,we are displaying  image ad using <img>  object,flash and movie ad using <embed> object and text ad using <p> object. fior displaying the first ad i am using appendchild() function and then i am using replacechild() function that will replace the current playing ad with the new one.
   my request is is there any common object   that will display image,text ,movie and flash ad.i am new to this javascript field.tnxs for reply
 
                                                               A.sureshAlex Turner <Alex.Turner at Project-Network.com> wrote:


Suresh,
 
It sounds like for some reason you are creating image objects all the time and they are not being garbage collected.  Truth be told, browsers are not really designed to do this sort of thing, so even if your code is theoretically correct, you might have to ‘help it along’ a bit to get the browser to behave properly.
 
I would suggest that you use one image and cycle its src attribute instead.
 
To do the preload, again use one image object which is not actually displayed and cycle its src until all are in the cache.  The browser cache is at the url level not the object level, so there is no requirement to store image objects for the data they contain to be cached.
 
Hope it helps.
 
AJ
 

Alexander J Turner Ph.D. www.deployview.comwww.nerds-central.blogspot.comwww.project-network.com




From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of suresh kumarSent: 09 September 2006 06:55To: javascript at latech.eduSubject: [Javascript] virual memory proeblem
 

Hi,

   I am facing one problem in my project.i am working in myadtv project that will display ads one by one in big LCD screen .

 

  suppose if i want  display 100 ads one by one  for a particular duration,after displaying the 100 th ad again it will start from 1 ad and goes in a loop until the user closes the browser.

 

 my problem is  ,if its runs  for continuously more than 10 hours if am displaying the message as 

                     " your system virtual memory is too low,windows is increasing the size of the virtual memory paging file ,during this process memory request for some application may be denied".    i can't understand this error message ,can any one tell me what this errror  message.

 

                  the logc behind our code  -   we are using javascript "imagepreloader()  function to load the ads in the browser cache once it gets loaded then it will start displaying one by one.

            

            

 
  
_________________________________________________________________
Express yourself with gadgets on Windows Live Spaces
http://discoverspaces.live.com?source=hmtag1&loc=us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060910/565d8069/attachment.htm>


More information about the Javascript mailing list