[Javascript] virual memory proeblem

Alex Turner Alex.Turner at Project-Network.com
Sat Sep 9 04:04:02 CDT 2006


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. 
HYPERLINK "http://www.deployview.com"www.deployview.com
HYPERLINK "http://www.nerds-central.blogspot.com"www.nerds-central.blogspot.com
HYPERLINK "http://www.project-network.com"www.project-network.com

   _____  

From: javascript-bounces at LaTech.edu [mailto:javascript-bounces at LaTech.edu] On Behalf Of suresh kumar
Sent: 09 September 2006 06:55
To: javascript at latech.edu
Subject: [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.

            

            

 

  

   _____  


Find out what India is talking about on - HYPERLINK "http://us.rd.yahoo.com/mail/in/yanswers/*http:/in.answers.yahoo.com/"Yahoo! Answers India 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. HYPERLINK "http://us.rd.yahoo.com/mail/in/messengertagline/*http:/in.messenger.yahoo.com"Get it NOW

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 08/09/2006
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060909/e83ca739/attachment.htm>


More information about the Javascript mailing list