New topic: 

Memory Mgmt Suggestions Using WebToolbar & ChartDirector

<http://forums.realsoftware.com/viewtopic.php?t=47191>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        bkasen          Post subject: Memory Mgmt Suggestions Using 
WebToolbar & ChartDirectorPosted: Wed Mar 06, 2013 8:37 pm                      
   
Joined: Fri Oct 15, 2010 4:33 pm
Posts: 16                I'm currently working on a web application which I am 
trying to find elegant approaches for efficient memory usage on the client side 
and server side. My application consists of over 20 web pages that display a 
dashboard like analysis using Monkeybread's Chart Director plugin. I also use a 
WebToolbar at the top of each page for a global navigation so the user can 
easily switch to another page to view. The toolbar has four drop downs and a 
few buttons (all contain 32 x32 PNG images) which I created in a container so I 
can re-use it easily in the other pages. Each page contains an instance of the 
navigation container at the top of the page, an imageview which displays the 
picture generated by ChartDirector, and a listbox which I use to display the 
data in a table format. After opening quite a few pages I end up with 100's of 
instantiated objects mainly because of the webtoolbar in each instance of my 
navigation container. I need to keep each page separate because the layout is 
different for each page.

As I have been testing the application by opening up many pages in the same 
session, I noticed that the application becomes very sluggish after about 10 or 
so, especially the toolbar drop downs interactivity. Each time the page opens 
it creates a new instance of the toolbar which contains around ~20 webmenuitem 
objects, and the picture is saved in memory on the client side. The only 
examples I see around for using a toolbar are simple one page examples but I 
don't see a good example for using the same control across the entire 
application containing many menu items. Is it possible to use a webtoolbar as a 
global navigation menu, but do so in a memory efficient way rather than 
instantiating 20 new webmenuitems into memory each time I open a new page? Any 
suggestions on efficient ways to display many chart pictures generated during 
runtime?

Is there any way to free up memory used by a page that's no longer shown by 
either setting it's variables/controls to nil or closing the page from the 
current session?

Thanks for any suggestions or input based on your experience!

Thanks,
Brian   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to