Page 1 of 1 1
Topic Options
#143014 - 2005-07-05 10:10 PM Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Had a weird error come up..
Quote:


Login Script Change. Users in <branch> getting message: "ERROR: doubly defined UDF [branchlog]! Script: \\DC\NETLOGON\newscript\NTBKFUN.KX"

Removal of BRANCHLOG UDF from FUNCTION.KIX/FUNCTION/KX.





Even after commenting this out, it still happened to the next UDF in FUNCTION.KX. Re-Tokenized NTBKFUN.KIX, which appears to have resolved the issue for now.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143015 - 2005-07-05 10:42 PM Re: Weird Error with KiX
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
This tokenizing is a nice feature, but I fear that this will soon be opening up a whole new set of problems and posts requesting help for it.

 
If you can track down and verify the exact cause and confirm that you can duplicate the issue that would be great.
 

Top
#143016 - 2005-07-05 11:14 PM Re: Weird Error with KiX
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
So what the heck changed that may have brought about this error ? Was it running fine for long time, then just broke ?
Top
#143017 - 2005-07-05 11:33 PM Re: Weird Error with KiX
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
Were you running a kix 4.50 beta and just upgraded to the final release?
Top
#143018 - 2005-07-05 11:57 PM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I could have very well have been "my bad." But, when I converted over all of our scripts, I did them all with the same EXE.

Very strange.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143019 - 2005-07-06 06:03 AM Re: Weird Error with KiX
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
one question...
is a UDF part of global namespace?
if yes that could explain a lot too...
_________________________
!

download KiXnet

Top
#143020 - 2005-07-06 07:00 AM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Quote:

one question...
is a UDF part of global namespace?
if yes that could explain a lot too...



Yes, it is part of a common function list (but was not used at the time) used for the entire enterprise.

Kent


Edited by kdyer (2005-07-06 07:01 AM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143021 - 2005-07-06 07:39 AM Re: Weird Error with KiX
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
next question is, have you ever tokenized your scripts with the multiple on one commandline shortcut?
_________________________
!

download KiXnet

Top
#143022 - 2005-07-06 03:13 PM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
No.. Just tokenize one at a time.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143023 - 2005-07-06 03:51 PM Re: Weird Error with KiX
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you say even if you commented it out, it kept erroring?
hmm... I have hard time believing that one.

anyways, if Ruud does not take this on, it's rather hard to say what was wrong in there, even if you had both versions of tokenized scripts to show.
you could try to reproduce this by retokenizing the script with the old kix beta.
this way would see if it was beta's compatibility issue with the gold.


Edited by Lonkero (2005-07-06 03:52 PM)
_________________________
!

download KiXnet

Top
#143024 - 2005-07-06 05:32 PM Re: Weird Error with KiX
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Are you using any INCLUDE statements? This will tokenize the included script as well which may cause scope creep with GLOBAL vars (including Functions).
Top
#143025 - 2005-07-06 06:20 PM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
No.. Only using CALL.

In fact:
Code:

; -- LOAD FUNCTIONS
IF SPLIT(@scriptname,'.')[1]='kx'
CALL @ldrive+'newscript\function.kx'
ELSE
CALL @ldrive+'newscript\function.kix'
ENDIF



But, you know what is interesting is that I CALL function.kix twice. That is it is loaded in the KIXTART.KIX/KIXTART.KX as well as NTBKFUN.KIX/NTBKFUN.KX again. The reason I did this initially is that the functions were lost when NTBKFUN.KIX was loaded.

Kent


Edited by kdyer (2005-07-06 06:33 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143026 - 2005-07-06 07:06 PM Re: Weird Error with KiX
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
oh, so it was your bad.
k, thanks for finding it out.
_________________________
!

download KiXnet

Top
#143027 - 2005-07-06 07:49 PM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Quote:

oh, so it was your bad.
k, thanks for finding it out.




It is how it is right now. That is the FUNCTION.KIX/KX file is still being loaded again. This being said, is where the duplicate definition is coming from.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#143028 - 2005-07-07 12:20 AM Re: Weird Error with KiX
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I feel like a complete idiot. What happend was is that I did a system rollback on my workstation before Ruud did the final release. Because of this, we were getting all sorts of odd errors.

I broke the cardinal rule about not running any compiled code from previous versions with the new W/KIX executables.

Sheesh,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
Page 1 of 1 1


Moderator:  ShaneEP, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 202 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.214 seconds in which 0.172 seconds were spent on a total of 12 queries. Zlib compression enabled.