I am not sure if this bug is in MC or in microsoft javascript, but I'll give it a try.
When I use following script MC crashes almost instantly. I am using Win2000 Pro where it just says MC has caused errors. I have also tried it under 98 where it gives error message:
MUSHCLIENT caused an invalid page fault in
module MUSHCLIENT.EXE at 015f:0042bff5.
Registers:
EAX=00000400 CS=015f EIP=0042bff5 EFLGS=00010246
EBX=00000000 SS=0167 ESP=007ef638 EBP=01582bdc
ECX=01582bdb DS=0167 ESI=01582bdc FS=4fdf
EDX=01582bdc ES=0167 EDI=00000000 GS=0000
Bytes at CS:EIP:
8b 4f 0c 89 5c 24 18 8b f1 89 5c 24 20 0b f0 c1
Stack dump:
01582be7 01582bdc 016730f0 00000000 ffffffff ffffffff 00000000 ffffffff 00000000 01582bdb 00000001 01672dd4 ffffffff 007ef6f0 0000002d 0000001e
The simplified part of the script that causes the crashes is:
/*<alias name="test1" script="test1" match="test1" enabled="y"/> */
function test1(thename, theoutput, wildcard) {
world.DeleteTemporaryTriggers();
}
/*<trigger custom_colour="2" enabled="y" match="In your dreams, or what?" name="test2" script="test2" sequence="100"/>*/
function test2(thename, theoutput, wildcard) {
world.addTrigger("test_trg","asdf","",1+1024+16384,1,0,"",""); // 32,8 doesn't matter, crashes anyways
}
When I enter "look;test1;look" (while sleeping to match the trigger) few times, it crashes. I tried in clean .mcl file on two different muds (circle and rom types), always the same. When in more complex situation the crash is not always immediate, but any line of input from mud causes number of error dialogues "Error executing regular expression". I suppose that it's one error for each regexp trigger. I hope it is connected with the above error, but I can't duplicate it without posting the entire script which wouldn't work on other computers or muds because it contains interfacing with my sql database and other non-portable parts.
I am using version 3.32.
Cloud |