Reload of script?

Posted by Faux on Sat 05 Feb 2005 11:40 PM — 5 posts, 25,623 views.

United Kingdom #0
I believe that that when mush reloads scripts from the:

---------------------------
MUSHclient
---------------------------
The script file "C:\mush\scripts\exampscript.lua" has been modified. Do you wish to re-process it?
---------------------------
Yes   No   
---------------------------


prompt, that it fails to clean up properly (sometimes resulting in crashes).

This is just a guess.. any other ideas why it might be eating memory/eventually crashing? It happens (more slowly, but still) when I'm using trivial scripting files, as well as when I'm using luacom/luadb/wxlua/..

Mush 3.65, Winxpsp2, using Lua scripting.
Australia Forum Administrator #1
It should clean up properly, but I'll look into it.
USA #2
Should maybe, but doesn't. Had the same issue with external objects, where things like my fireworks gadget or the Winamp activeX control where never released with a reload. The reload just resulted in a new copy being made, but the old copy stayed in memory. Same with reloading plugins or even removing them and re-adding them. This is most obvious with the fireworks plugin/gadget, since it 'should' close when the control is dropped. Yet it stays in memory, so obviously its not being released.
Lithuania #3
Same memory problem here... :(
Australia Forum Administrator #4
My tests seem to indicate that the reload function indeed calls the script engine's "close" function, which should release internal script objects. Whether the script engine does that properly or not would be a separate issue.

Also it is possible that scripts that do fancy things (eg. load ActiveX controls) may not clean them up properly when the script is reloaded.