mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
A simple script.. What will crash your sweety mIRC grin
Call /FilterCrashMirc.. To remain dry.. After restarting do /FilterClean.

Code:
Alias FilterCrashMirc {
  write TTemp.txt hehe
  write TTemp.txt hehe
  window @wWindow
;If Zzz will be called more than 1 time.. mIRC will crash ;) 
;If you don't whant.. ? Just comment one write..
  filter -afw TTemp.txt @wWindow Zzz
}

Alias Zzz {
  write ZZemp.txt huhu
  window @LastWindow
  filter -fw ZZemp.txt @LastWindow
}

Alias FilterClean {
  .remove TTemp.txt
  .remove ZZemp.txt 
}


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Your example doesn't crash with only 1 line, because Alias Zzz is only called when 2 or more lines are filtered. The purpose of the alias is for sorting, and should not be used for anything extraneous.
___

Another thought...
Try not writing to a text file while /filter is accessing it.

You are probably screwing up /filter's perceived notion of the file's size by adding to the file while it reads. This may or may not be the cause of the crash.. but you shouldn't be doing it anyway.

If your example weren't to crash mIRC, it would process infinitely... writing to the file and window at an exponential rate.

- Raccoon


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Joined: Apr 2003
Posts: 414
Fjord artisan
OP Offline
Fjord artisan
Joined: Apr 2003
Posts: 414
Yap.. I still learn the /filter function.. And i used -a for other purpose, and it don't do what i realy whant.. Anyway.. mIRC must don't crash in any situation..
And some timers will solve the problem.. .timer 1 0 filter -fw ZZemp.txt @LastWindow


mIRC Chm Help 6.16.0.3 Full Anchored!
Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
I reported this some months ago, but I was ignored... smirk


Link Copied to Clipboard