From: <la...@mi...> - 2001-02-06 13:45:39
|
Hi, I am new to DynAPI, but not to dhtml development in general, and I have been trying your API out for a while. I tried DynAPI2 after I had some serious unsolvable problems with dynacore and leaks in IE5.5. It appears that you have the same problem as well. I would like to help sorting them out, but I am affraid that I can't do it alone. Try the following code in IE5.5 look at the taskmgr.exe, hit reload a couple of times. Watch the mem usage go up. Now remove the DynAPI.setLibrary line and the two lines below it. Do the same expiriment again. Memory will stay stable. Also try keeping the includes but removing the div-tags from the body section. Now I have made some pulldown menus inspired by Pascals example at his dynacore site. It leaks more than 1mb pr. reload/link. That is too much! I need to use this for a customer. Does anyone have any ideas on what I could do ? I tried to include: DynAPI.onunload=function() { delete DynAPI } It seemed to help a little, but I can't really be sure. Could that be a way to solve it ? In that case what do I have to look out for when writing a manual garbage collector for DynAPI. Anyway you put it: Waiting for the next release or using mozilla instead is not an option. So I have to solve the problem somehow. Regards Lasse ---- <html> <head> <title>DynAPI Distribution: Inline Layers Example</title> <script language="Javascript" src="../src/dynapi.js"></script> <script language="Javascript"> DynAPI.setLibraryPath('../src/lib/') DynAPI.include('dynapi.api.*') DynAPI.include('dynapi.ext.inline.js') </script> </head> <body> <div></div> </body> </html> |