mIRC Home    About    Download    Register    News    Help

Print Thread
#82813 12/05/04 01:09 PM
Joined: Mar 2004
Posts: 108
X
Vogon poet
OP Offline
Vogon poet
X
Joined: Mar 2004
Posts: 108
this seems to close mIRC on win98 and winME i believe on all versions of mIRC...

dialog -m A A | dialog -m B B | dialog -c A | dialog -c B

now with the help of a few people we found that the following works:

dialog -m A A | dialog -m B B | dialog -c B | dialog -c A

Is it order of open sensitive? also seems that -x instead of -c is ok also.. now if it is order sensitve.. then why only on 98 and ME OS? As it doesnt skip a beat on 98SE, XP and i believe 2000.. using either of the above examples.
I tried on v6.03+ all same results..

#82814 12/05/04 04:41 PM
Joined: Oct 2003
Posts: 284
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 284
I tested last night using win98 and 6.14, with the following:

Code:
  
dialog a {
  title "a"
  size -1 -1 -1 -1
  button "OK", 10, 10 10 10 10, OK
}

dialog b {
  title "b"
  size -1 -1 -1 -1
  button "OK", 10, 10 10 10 10, OK
}


These sequences are fine:
Code:
//dialog -m a a | dialog -m b b | dialog -c b | dialog -c a
//dialog -m b b | dialog -m a a | dialog -c a | dialog -c b


While these crash:
Code:
//dialog -m a a | dialog -m b b | dialog -c a | dialog -c b
//dialog -m b b | dialog -m a a | dialog -c b | dialog -c a


(note the order of definition and closing)

If either dialog has a cancel button, there is no crash.

I also confirmed with another user (also on W98/6.14) that the crashes occur 100% of the time in the second case above.

My assumption is that something in the cleaning up after the dialogs is dependent on the order in which they were created. Without the source I couldn't tell, though wink)


Last edited by Sais; 12/05/04 04:42 PM.
#82815 12/05/04 05:57 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Quote:
then why only on 98 and ME OS? As it doesnt skip a beat on 98SE, XP and i believe 2000

Well without a Cancel button then it will crash on 98SE aswell. Of course if there isn't a Cancel button then you have to wonder why a script would be using dialog -c anyway, but that's beside the point I guess.

#82816 12/05/04 09:56 PM
Joined: Oct 2003
Posts: 284
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 284
My apologies, I should have said I was using 98SE. I wasn't expecting people to be using plain 98 anymore wink

But, yes, that it crashes mIRC is the point - whether it is something that should or shouldn't be done in "correct" scripting is beside the point smile

"These fools are more ingenious than they make themselves out to be"

#82817 13/05/04 11:57 AM
Joined: Dec 2002
Posts: 3,842
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 3,842
Thanks, this has been fixed for the next version.


Link Copied to Clipboard