mIRC Home    About    Download    Register    News    Help

Print Thread
#141315 08/02/06 01:05 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
I would be useful to have 2 identifiers or variables available within a DLL to retreive the name of the calling script and also the line number where it was called.

This information could then be used by a DLL when they are printing an error message to indicate in what script/line dll call the error occured.

Another thing could be to have a traceback function that could give all the commands called within each other from the error line to the starting call.

#141316 08/02/06 01:10 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
In addition; mIRC doesn't show errors that occur within an alias if it was called from the dll. I think it'd be nice if dlls had control over this in some way (maybe via the 'show' parameter.)

#141317 08/02/06 09:17 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I assume $script and $scriptline return incorrect/null values inside the dll?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#141318 08/02/06 10:33 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
$null and $null

I need a calling script $script and $scriptline or a debug trace kind of thing.


Link Copied to Clipboard