Page 1 of 1 1
Topic Options
#146844 - 2005-08-31 02:23 AM Error when using "Include"
dataspike Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 89
Loc: San Diego, CA
I have attached the error that I get and a snipet of the code that I am using to call the other .kix file.

Any help would be awesome. BTW, if I remember correctly this worked just fine on the version, just before 4.5. If need be, let me know and I can include the entire code for both files.

Thanks guys,
Chris



Code:

;Region Change History
;*******************************************************************************
;** Script: kixtart.kix
;** Created: 08-30-05
;**
;** This is the SiteName specific Kix script. It will be generally called from
;** login script via a Group Policy object.
;**
;** Please remember to comment and date any modifcations that you make.
;**
;** Please keep the Skip Logon Script portion of the script at the beginning,
;** as it checks to see if you are logging on to a Server or part of the
;** Domain Admins, IT Dept groups.
;**
;*******************************************************************************


;*******************************************************************************
; C H A N G E H I S T O R Y
;*******************************************************************************
; Date ID Description of change
;*******************************************************************************
; 08-30-05 CVC Created
;*******************************************************************************
; C H A N G E H I S T O R Y
;*******************************************************************************
;
;EndRegion

Include "Messenger.kix"

Break Off

;*******************************************************************************
;** Constant Variables
;*******************************************************************************

$MachineCookie = "HKLM\Software\CompanyName"
$UserCookie = "HKCU\Software\CompanyName"

$SysFolder = %WinDir% + '\system32'

$LocalDC = @LSERVER

$Tools = @LSERVER + '\netlogon\kix\tools'

$NetScreenSaver = @LSERVER + '\netlogon\sitename\company.scr'
$LocalScreenSaver = $SysFolder + '\company.scr'

$NetLogo = @LSERVER + '\netlogon\sitename\logo.bmp'
$LocalLogo = $SysFolder + '\newplogo.bmp'

$NetKix = @LSERVER + '\netlogon\kix\wkix32.exe'
$LocalKix = $SysFolder + '\wkix32.exe'


Top
#146845 - 2005-08-31 02:30 AM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
could have not worked before version 4.50 as none of the versions supported include.
_________________________
!

download KiXnet

Top
#146846 - 2005-08-31 02:38 AM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
k, I would like to see messenger.kix
_________________________
!

download KiXnet

Top
#146847 - 2005-08-31 04:27 AM Re: Error when using "Include"
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
there is something in the 4.51beta about fixing the include command.

http://isorg.com/?p=61 try downloading the beta and giving it a shot?

Top
#146848 - 2005-08-31 04:45 AM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
bryce, yea, there is a fixed issue.
but include works fine in 4.50 too.
the fixed issue (iirc) was about person including same script all over again.

anyways, this error seems that this is not the case here.
this error clearly says that his messenger.kix and this kixtart.kix form a loop that infinetely go on.
_________________________
!

download KiXnet

Top
#146849 - 2005-08-31 04:53 AM Re: Error when using "Include"
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
From the error it sounds like Script A is including Script B and Script B is including Script A and Script A is including Script B and so on...

I could be way off though, haven't played with Include at all yet.

Top
#146850 - 2005-08-31 05:07 AM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja, just like I said,
infinet loop kinda thing.
_________________________
!

download KiXnet

Top
#146851 - 2005-08-31 05:12 AM Re: Error when using "Include"
maciep Offline
Korg Regular
*****

Registered: 2002-06-14
Posts: 947
Loc: Pittsburgh
hmmm...that is exactly what you said, isn't it? Too much golf for me, i must have shed off your last line while reading
Top
#146852 - 2005-08-31 05:16 AM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol.
well, guess how many bug reports I've been posting and dropping before hitting submit.
I tell you, that golf has a weird affect.
_________________________
!

download KiXnet

Top
#146853 - 2005-08-31 08:59 AM Re: Error when using "Include"
dataspike Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 89
Loc: San Diego, CA
Thanks for the posts guys... I'll post both full .kix files in the morning. It's nearly 11:45PM so I'll let you all know.

BTW, I guess the error could give me a hint, but if memory serves I may have put a line in the "Messenger.kix" file that calls "Include Kixtart.kix", so would that be the cyclic reference? Again, I'm not sure if it's there or not, but I will check in the morning.

Thanks.
Chris

Top
#146854 - 2005-08-31 04:26 PM Re: Error when using "Include"
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
indeed, that would exactly do this.
both files including themselfs ends up in infinite loop, even BEFORE the script execution is started :P
_________________________
!

download KiXnet

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

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

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org