Nick, I've been having this problem forever... MUSHClient doesn't appear to be crashing on my friend's PC, but sometimes, when i use color, it crashes. Not only that, but when I reopen it, it crashes again, or it uses some random background color when i haven't assigned one in world.colourtell. The random background thing happens after it crashes once. I.e.:
I use color normally
Suddenly, crash
I open it up, and suddenly colourtell uses a background color!
Please look into it, it is really annoying... I can send you the windows XP memory dump if you want...
Don't bother sending me the memory dump, I never use them these days.
When you say it crashes when you "use colour" can you give me the script line that you are referring to, including the colour name it uses?
Sure. actually, it crashes when i use any color, be it chartreuse, orange, red, anything... haven't tried to use the MXP/HTML/RGB code though, to see if that crashes MUSHClient as well... the code is simply
world.colourtell "chartreuse", "", <some variable>
hmm if it's any help, i think it's the displaying the color that crashes it, because sometimes i see the lines outputted appear (not exactly appear, they are blank and the world file scrolls up), and mushclient crashes while trying to refresh/paint the text window
Hmmm - you are the only one reporting this. Maybe "some variable" is corrupted somehow.
Hmm maybe... reinstalling didn't seem to fix it though... it works now, although i got the background color glitch without crashing... Can you review the colour display code and see if you can spot anything?
The colour display code is quite complex in some ways, because it handles ANSI, custom and RGB colours, using style runs for efficiency.
Possibly some combination of circumstances would crash it, it would be helpful to have a small script that definitely crashes, or behaves badly. Please try to make somesuch.
For instance, what *might* do it would be to do a colourtell with a zero-length string, and then switch colours, maybe following, or followed by, an ANSI string (ie. not RGB colours).
Hmm, that would probably do it, but what concerns me is that i can't always reproduce the error... The code is perfectly legal, i'm not doing a colourtell with a zero length string, but still it only crashes at some times, or changes background color in others :/
I was having a problem that sounds similar to this. It seems that the colourtell would crash Mushclient if the note color was set to 0, so I had to modify my script to change the note color back to 1 occasionally to help prevent any more crashing.
Occasionally? If you can give me a script that will definitely crash it, I will run it through the debugger and work out what is wrong.