[Javascript] virual memory proeblem

suresh kumar asureshkumar_1983 at yahoo.co.in
Sun Sep 10 08:26:39 CDT 2006


                                     sir,i can can't get ur reply ,i want to display image,flash,movie and text ads by using common object.right now i am using replacechild().
      i will give you an example ,suppose i am displaying the image ad using <img> object,my next ad to display is flash means i will create <embed> object and i am using repalcechild() to replace current ad with new one.and it will go in loop.
     i am receiving this error message if i run it for continuously more than 12 hours -     "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". 
   
        my request is is there any common object   that will display image,text ,movie and flash files .i am new to this javascript field.tnxs for reply

Terry Riegel <riegel at clearimageonline.com> wrote:  This 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.suresh
Alex 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.com
www.nerds-central.blogspot.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 - Yahoo! Answers India 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. 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

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript

  

  
---------------------------------
  Find out what India is talking about on - Yahoo! Answers India 
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW  _______________________________________________
  Javascript mailing list
  Javascript at LaTech.edu
  https://lists.LaTech.edu/mailman/listinfo/javascript



_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


 				
---------------------------------
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20060910/283c2065/attachment.htm>


More information about the Javascript mailing list