[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  Reload of script?
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Reload of script?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Faux   United Kingdom  (77 posts)  [Biography] bio
Date Sat 05 Feb 2005 11:40 PM (UTC)
Message
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.

Faux, from Discworld. Feel free to come talk to me =)

http://faux.servebeer.com/
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 12 Feb 2005 11:05 PM (UTC)
Message
It should clean up properly, but I'll look into it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Shadowfyr   USA  (1,783 posts)  [Biography] bio
Date Reply #2 on Sun 13 Feb 2005 06:43 PM (UTC)
Message
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.
[Go to top] top

Posted by Prattler   Lithuania  (15 posts)  [Biography] bio
Date Reply #3 on Mon 18 Apr 2005 04:30 PM (UTC)
Message
Same memory problem here... :(
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Mon 18 Apr 2005 09:40 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


5,682 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]