I don't what happened to my Mush Client v4.24 (on windows 2003).
Once it runs a period of time, then it suddenly closed without saying anyting.
here is the msg i copyed from windows Event Log:
0000: 41 70 70 6c 69 63 61 74 Applicat
0008: 69 6f 6e 20 46 61 69 6c ion Fail
0010: 75 72 65 20 20 4d 55 53 ure MUS
0018: 48 63 6c 69 65 6e 74 2e Hclient.
0020: 65 78 65 20 34 2e 30 2e exe 4.0.
0028: 32 34 2e 30 20 69 6e 20 24.0 in
0030: 4d 55 53 48 63 6c 69 65 MUSHclie
0038: 6e 74 2e 65 78 65 20 34 nt.exe 4
0040: 2e 30 2e 32 34 2e 30 20 .0.24.0
0048: 61 74 20 6f 66 66 73 65 at offse
0050: 74 20 30 30 30 31 30 32 t 000102
0058: 33 37 37
A problem was fixed recently where the "progress bar" which appears during loading the spell checker would have a fault if it was garbage-collected by the script engine, which might occur somewhat later.
I don't use the spell checker.
v4.27 still has this problem.
i wanna try v4.29, however, it didn't work in Windows2003 (closed after showing the mush logo), while it is OK in WinXP.
I think this problem is caused by timer. In my lua script, I call these functions very often:
---- begin code ----
function Helper:ResetTimer(name, interval)
assert(IsTimer(name), "timer doesn't exist")
EnableTimer(name, false)
local hours = math.floor(interval / 3600)
interval = interval - (hours * 3600)
local minutes = math.floor(interval / 60)
local seconds = interval - (minutes * 60)
SetTimerOption(name, "hour", hours)
SetTimerOption(name, "minute", minutes)
SetTimerOption(name, "second", seconds)
EnableTimer(name, true)
ResetTimer(name)
end
---- end code ----
and
---- begin code ----
EnableTimer(name, false)
---- end code ----
It only crashes in Windows 2003? Well I don't have a copy of that, and won't be able to get one, even if I wanted to. Heck, I can't even buy Windows XP these days, as all they will sell you is Vista.
See if you can narrow it down to a small plugin or piece of script that reproduces the problem without any extra stuff. I don't mean snippets like you posted, but a working piece I can try out.
However if it doesn't crash on XP, there won't be much I can do, unless I spot something funny in what you are doing.
crashed again. @.@ don't know what happened. the point is i don't know the exact time when it crashes. so...
can u provide a debug version, or having a global execeptions catch to show some error message that i can copy it and parse here.
Nick,
Can you renew the souce code to mush client v4.72 ?
or send to my email if u can: wjshome(AT)gmail.com
i try to compile source code with visual studio, and coming out several erros.
so the easy way is that you send me a debug version of mushclient and its source code, and i can easily attach the source code to the running application. what do u think?
another thing is my lua script is almost 65k(more than 1800 lines code), and i opened 5 worlds in mush, doesn't it too big for the lua executing engine? would it be a reason for the crash?
I have a world running with over 4,000 lines of plugins in Lua, so it should handle that easily. I also have 9 worlds open.
Either you are doing something that isn't supported under Windows 2003, or your script is doing something, like recursively calling itself and gobbling up all available memory before crashing.
You have said "i cannot do the test" but then you posted some debugging code. Did that come from the test or not?