From: Robert R. <rra...@ya...> - 2001-02-20 20:36:46
|
You could possibly load the same url with a unique paramater passed in the url. I have yet to try this though. -- // Robert Rainwater On 2/20/2001, 2:27:22 PM EST, Pascal wrote about "[Dynapi-Dev] Freeing Memory": > so on a url change everything is freed? > couldn't we then check for a on window close or window blur event? (not sure > if these are available).. in that case we could do a fast url change or > something (again, not sure if that's possible) > Pascal Bestebroer > pa...@dy... > http://www.dynamic-core.net >> -----Oorspronkelijk bericht----- >> Van: dyn...@li... >> [mailto:dyn...@li...]Namens Eytan Heidingsfeld >> Verzonden: dinsdag 20 februari 2001 20:18 >> Aan: Dynapi-Dev >> Onderwerp: [Dynapi-Dev] Freeing Memory >> >> >> Since IE is way more popular I started with it. I was wrong with my >> assumption that nullifying objects (not even talking about html >> elements(layers)) does the whole thing. Let me tell you what I discovered: >> if you create 10000 small object and then nullify them nothing happens but >> when you recreate them still the memory stays stable. I want to >> test replace >> "= null" with "= [];" maybe that will help. >> Identified positive freeing of memory when changing url. Now you all may >> say: "so what this sux we can't force them to change url!!" it might be ok >> if we design such a system(this design fits well with the talks >> about a new >> API" >> We create a framed page >> one called RAM and one regular one where you place your project. >> In the RAM page there is a method called createObject which does the >> following: >> * takes the type of object expected >> * adds a new object of that type to an array called mem >> * returns the index >> then on the regular page we say >> i = createObject(DynLayer); >> myDynLayer = parent.frames[0].mem[i]; >> (there will be a shortcut to parent.frames[0]). >> >> Then when we want to free mem we pass the mem array to the main >> frame change >> the url to an empty page and reassign the mem array. >> >> Not even sure if this system works. Gonna try it now anyone else >> got ideas? >> >> 8an >> >> >> _______________________________________________ >> Dynapi-Dev mailing list >> Dyn...@li... >> http://lists.sourceforge.net/lists/listinfo/dynapi-dev >> > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev ---------------------- DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ DynAPI Homepage: http://dynapi.sourceforge.net/ |