mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2003
Posts: 72
V
visionz Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
mIRC crash with this piece of code :

Code:
; file.txt is a 64 bytes text file
alias crash_mirc {

  var %f = $scriptdirfile.txt
  bread -t %f 1 $lof(%f) &w
  bread %f 1 $lof(%f) &b
}


Win7 64 bits

//echo -a $version $os $dll(0) $script(0)
7.1 7 0 1

Joined: Apr 2010
Posts: 969
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Apr 2010
Posts: 969
try $file(%f).size

Am running WinXp Pro SP3 mIRC 7.1 and it works for me

Last edited by FroggieDaFrog; 13/08/10 01:18 AM.

I am SReject
My Stuff
Joined: Aug 2003
Posts: 72
V
visionz Offline OP
Babel fish
OP Offline
Babel fish
V
Joined: Aug 2003
Posts: 72
Crash everytime for me. It seems mIRC doesn't like bread -t the entire file!

Code:
alias crash_mirc { 
  write file.txt $str(a,128)
  bread -t file.txt 1 128 &w 
}

Last edited by visionz; 13/08/10 01:46 AM.
Joined: Dec 2002
Posts: 344
D
Pan-dimensional mouse
Offline
Pan-dimensional mouse
D
Joined: Dec 2002
Posts: 344
This does not cause a crash for me. I am also using Windows 7 64-bit.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
I can't reproduce this either on a Win7 64bit machine.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
No crash for me, Win 7 32 bits..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You're definitely on to something here. I can get it to crash with your second alias but not every time. Usually it happens the second time but sometimes it needs more. Even when /crash_mirc doesn't cause a crash, it leaves mIRC in an erroneous state. For example, after one run of the alias, the Editor forgot its last window size and font and opened in the default state. Various other oddities occurred as well.

Tested on Win7 64bit.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks this issue has been fixed for the next version.


Link Copied to Clipboard