mIRC Home    About    Download    Register    News    Help

Print Thread
#82727 11/05/04 04:22 PM
Joined: Aug 2003
Posts: 80
H
HM2K Offline OP
Babel fish
OP Offline
Babel fish
H
Joined: Aug 2003
Posts: 80
I often get this error, but for some reason it doesn't include the script or line, or even a timestamp...

I already have a timestamp of when it happens, by using a script that was provided when I posted before, which means I can find out at what time the problem is caused, and see what has triggered it... so I also now know the problem...

What I need to find now is what script it is in, and possibly which line... is this possible?

Thanks.

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Well one common reason for not getting line/file info is that the command is called from a timer. To check what timers are running and what commands they're using put this in your Remotes (Alt+R):
Code:
alias checktimers {
  var %i = $timer(1), %t = $timer(0)
  while %i <= %t {
    echo -ca info Timer $timer(%i) - $+(,$timer(%i).com,)
    inc %i
  }
  if (!%i) echo -ca info No timers running
}

Then just use /checktimers and see if any timers are running which use $read().

Another reason for no line/file info is if the command was used inside $findfile() or $finddir(), so you might want to check for $read() being used somewhere as the last parameter of either of those identifiers.

Joined: Dec 2002
Posts: 230
G
Fjord artisan
Offline
Fjord artisan
G
Joined: Dec 2002
Posts: 230
No offense starbucks_mafia, but did you ever try "/timer"? smile

Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Hmmm.. forgot timer/timers shows the command aswell. blush

Joined: Aug 2003
Posts: 325
W
Fjord artisan
Offline
Fjord artisan
W
Joined: Aug 2003
Posts: 325
This may take a few minutes, but go into each primary script that uses $read, and include this:
Code:
:error
echo -s Error in script <scriptname> : $error
return


That will help you to narrow down the script.


Link Copied to Clipboard