mIRC Home    About    Download    Register    News    Help

Print Thread
#58510 30/10/03 10:21 PM
Joined: Oct 2003
Posts: 5
Z
zin Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Oct 2003
Posts: 5
I'm on Win98SE on a Celeron 466 and mIRC 6.12, my DCC trivia suddenly started crashing whenever it finished and on further inspection it was because of the close -c $nick command. I reproduced it with this bit of code.

on *:CHAT:*:{
if ($1 == !test) { close -c $nick }
}

If anyone else can reproduce it then let me know. I've also tested it on a completely plain brand new spanking no-scripts loaded mIRC 6.12 and it still crashes.. thank you.

#58511 31/10/03 03:31 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
isnt everything involved with DCC =$nick ? or am i wrong?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#58512 01/11/03 02:00 AM
Joined: Sep 2003
Posts: 70
M
Babel fish
Offline
Babel fish
M
Joined: Sep 2003
Posts: 70
It doesn't matter if it should be =$nick or not. mIRC shouldn't crash.

#58513 02/11/03 11:49 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
mIRC didn't crash here (v6.12 @ Win98se)

#58514 05/11/03 07:18 PM
Joined: Oct 2003
Posts: 15
R
Pikka bird
Offline
Pikka bird
R
Joined: Oct 2003
Posts: 15
This could be the problem some people (including me) have detected using fserves and other scripts.
Adding a close { halt } alias has been sufficient to avoid the random crashes I had since I upgraded from 6.03 to 6.12.
Btw, I'm on W2K and AMD Athlon...

#58515 07/11/03 12:37 AM
Joined: Nov 2003
Posts: 1
P
Mostly harmless
Offline
Mostly harmless
P
Joined: Nov 2003
Posts: 1
Yes i was waiting for someone to post this. I script irc bots and i have to make a partyline. So if the guys password he typed is wrong at the login, i have to put /close -c $nick. But guess what? mIRC has caused an Error in mIRC.exe.

Definietly a bug, a new one cause it never did this be4!


#58516 13/11/03 07:58 AM
Joined: Oct 2003
Posts: 5
Z
zin Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Oct 2003
Posts: 5
sorry for bumping this up again but I need a solution or at least be told that this will be fixed in the next version of mIRC or something.. or even a way round the bug..

someone said "Adding a close { halt } alias" ... do you mean adding an alias called close which calls up a halt command? could I just add the halt command in the script?

#58517 14/11/03 09:09 PM
Joined: Oct 2003
Posts: 15
R
Pikka bird
Offline
Pikka bird
R
Joined: Oct 2003
Posts: 15
Quote:
someone said "Adding a close { halt } alias" ... do you mean adding an alias called close which calls up a halt command? could I just add the halt command in the script?

Apparently this alias halts every further execution of the caller (i.e. a script function you may not want to modify because not faulty per se, hoping a bug fix for example laugh). Of course it is prolly to create other instabilities elsewhere...
As a matter of fact, you could try this modified version (not very elegant as I'm not a mIRC geek):
Code:
 
close { 
  if ($1 != -c) /close $1-
  else {
    /var %nch = $chat(0)
    if (%nch > 0) {
      var %i = 1
      while (%i <= %nch) {
         if (($chat(%i) == $2) && ($chat(%i).status == inactive)) {
         /close -c $+ %i
          return
        }
        inc %i
      }
      halt 
    }
  }
}

This is the version I use now with sysreset and I didn't crash since I've implemented it (the mere alias "close { halt }" had definitely too much drawbacks...). Basically it only verifies every chat closes and try to close it in another way (by looping on each open chat and allowing close only if inactive, maybe this last condition is not necessary, but now it works satisfactory, so...). Other window closes are no longer affected.

#58518 20/11/03 01:25 AM
Joined: Nov 2003
Posts: 4
T
Self-satisified door
Offline
Self-satisified door
T
Joined: Nov 2003
Posts: 4
Hi

I've searched through the script but can't figure where to put comand.

Any idea what I'm looking for, for some one that really has no idea about scripting it would be appreciated?

Thanks

#58519 20/11/03 03:23 AM
Joined: Sep 2003
Posts: 4
R
Self-satisified door
Offline
Self-satisified door
R
Joined: Sep 2003
Posts: 4
Just putting it anywhere in an alias file should be fine. If you did the close { halt } one you'll want to delete that line first.

#58520 25/11/03 02:12 PM
Joined: Oct 2003
Posts: 15
R
Pikka bird
Offline
Pikka bird
R
Joined: Oct 2003
Posts: 15
Unfortunately, it seems my little script doesn't prevent the crash to occur. Sorry.
Maybe it lowers the rate... I don't even know. I didn't crash for almost a week. And now, I'm back to "normal", around once a day. With this same close alias.
Definitely, there's something else. But as far as I can see (with logging trace messages), it is really related with the closing of the chat windows.
So annoying!

#58521 26/11/03 08:05 AM
Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
Use /window -c =nick for now.


* cold edits his posts 24/7
#58522 26/11/03 02:03 PM
Joined: Oct 2003
Posts: 5
Z
zin Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
Z
Joined: Oct 2003
Posts: 5
glad I checked back today. thanks

#58523 24/01/04 03:17 PM
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
close -c %nick causes this crash:

MIRC612 heeft een fout met betrekking tot een ongeldige pagina veroorzaakt in
module MIRC612.EXE op0167:0042cbe4.
Registers:
EAX=00000000 CS=0167 EIP=0042cbe4 EFLGS=00010246
EBX=00000000 SS=016f ESP=0081eeec EBP=00000004
ECX=00f6daec DS=016f ESI=00f6daec FS=10ff
EDX=00000000 ES=016f EDI=00000005 GS=0000
Bytes in CS:EIP:
8b 8e 80 08 00 00 41 8b c1 83 f8 14 89 8e 80 08
Stackdump:
0081fb80 0081fb78 0000801d 0081fbcc 74697865 0000000a 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

window -c = $+ %nick causes this crash:

MIRC612 heeft een fout met betrekking tot een ongeldige pagina veroorzaakt in
module MIRC612.EXE op0167:0042cbe4.
Registers:
EAX=00000000 CS=0167 EIP=0042cbe4 EFLGS=00010246
EBX=00000000 SS=016f ESP=0081eeec EBP=00000004
ECX=00f6daec DS=016f ESI=00f6daec FS=133f
EDX=00000000 ES=016f EDI=00000005 GS=0000
Bytes in CS:EIP:
8b 8e 80 08 00 00 41 8b c1 83 f8 14 89 8e 80 08
Stackdump:
0081fb80 0081fb78 0000801d 0081fbcc 74697865 0000000a 00000000 00000000 00000010 0000000e 00000000 00000000 00000010 0000000e 00000000 00000000

There is a small difference: the FS segment register.
which is possible due to memory assignment since the value when /window -c also appeared sometimes when /close -c

If the DCC CHAT is closed with the cross from clientside instead of the EXIT and QUIT commands (own made) then there is no crash.
For the moment, I can't find a workaround, I disabled both commands in my script. It confuses ppl but better than a crash.
I use the ON *:CLOSE event to remove userdata and I added a parameter to skip the DCC CHAT windows which I was unnecessary closing before since the event signals this..
Of course, my DCC CHAT idle timeout to close can't do that so those are set excessive long now.

Last edited by RRX; 24/01/04 03:19 PM.

Link Copied to Clipboard