#181795 - 2007-10-19 08:55 PM
Re: script runs, but use command gives error
[Re: rawsonm]
|
Glenn Barnas
KiX Supporter
   
Registered: 2003-01-28
Posts: 4401
Loc: New Jersey
|
After each command in question, add: LMsg('ID', @ERROR, @SERROR)
"ID" should be something that describes the point in your script, like "Line 97".
Then add the LMsg() UDF to your script:
Function LMsg($ID, $Err, $SErr)
Dim $_
$_ = RedirectOutput('C:\LoginErr.txt')
'Error ' $Err ' occured at ' $ID ?
' ' $SErr ? ?
$_ = RedirectOutput('')
Exit $Err ; exit with same error so @ERROR is not modified by this func
EndFunction
Run your code, then examine C:\LoginErr.log to see what happened. If the log is empty, the cause is bad coding - Kix is throwing an error that is terminating the script at the point of error. You could add a RedirectOutput to the beginning of the script, so all output, including Kix fatal errors, will be in the log. Also, you can try Kix 4.6, which will write fatal errors to the application event log.
Glenn
_________________________
Actually I am a Rocket Scientist!
|
|
Top
|
|
|
|
script runs, but use command gives error
|
rawsonm
|
2007-10-18 05:29 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-18 07:21 PM
|
Re: script runs, but use command gives error
|
noobness
|
2007-10-18 07:34 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-10-18 07:39 PM
|
Re: script runs, but use command gives error
|
rawsonm
|
2007-10-19 05:58 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-10-19 08:55 PM
|
Re: script runs, but use command gives error
|
rawsonm
|
2007-10-26 03:32 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-26 07:36 PM
|
Re: script runs, but use command gives error
|
Witto
|
2007-10-26 07:45 PM
|
Re: script runs, but use command gives error
|
rawsonm
|
2007-11-01 08:00 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-11-01 08:31 PM
|
Re: script runs, but use command gives error
|
rawsonm
|
2007-11-02 01:32 AM
|
Re: script runs, but use command gives error
|
Richard H.
|
2007-11-02 09:32 AM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-11-02 02:55 AM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-11-02 12:28 PM
|
Re: script runs, but use command gives error
|
Benny69
|
2007-11-02 12:58 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-11-02 02:20 PM
|
Re: script runs, but use command gives error
|
Allen
|
2007-11-02 02:39 PM
|
Re: script runs, but use command gives error
|
Benny69
|
2007-11-02 02:46 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-11-02 02:55 PM
|
Re: script runs, but use command gives error
|
Richard H.
|
2007-11-02 06:30 PM
|
Re: script runs, but use command gives error
|
Howard Bullock
|
2007-11-04 01:39 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-11-03 05:38 AM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-11-03 01:43 PM
|
Re: script runs, but use command gives error
|
Mart
|
2007-11-03 04:33 PM
|
Re: script runs, but use command gives error
|
Les
|
2007-11-02 02:17 AM
|
Re: script runs, but use command gives error
|
rawsonm
|
2007-11-01 07:57 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-26 07:48 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-26 07:16 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-10-26 08:15 PM
|
Re: script runs, but use command gives error
|
Richard H.
|
2007-10-23 01:24 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-10-23 01:41 PM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-23 11:11 PM
|
Re: script runs, but use command gives error
|
Glenn Barnas
|
2007-10-24 04:22 AM
|
Re: script runs, but use command gives error
|
NTDOC
|
2007-10-24 09:21 AM
|
Re: script runs, but use command gives error
|
Arend_
|
2007-10-24 09:50 AM
|
Re: script runs, but use command gives error
|
Gargoyle
|
2007-10-24 03:21 PM
|
Re: script runs, but use command gives error
|
Arend_
|
2007-10-23 01:38 PM
|
Re: script runs, but use command gives error
|
Witto
|
2007-10-19 07:02 PM
|
Re: script runs, but use command gives error
|
Gargoyle
|
2007-10-19 08:27 PM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
1 registered
(Allen)
and 1198 anonymous users online.
|
|
|