This is a new limitation in the newer versions of the server.

 

There are no options except to recode. The situation is that Witango no longer allows the execution of more than 20 @includes in any one particular action. You have a few options.

 

1- do less than 20 loops.

2- create the loop with actions, not in code (FOR action, rather than @FOR) so that you only have one @INCLUDE per action.

3- use a TCF call, which would offload the function.

4- use an external or COM that can do the If_File_Exists check. I’ve found a good COM is best for tasks like this, and typically faster. You could probably find a free one, or perhaps the function exists in one that you have already, things like this are common companion calls in more robust COMs.

 

If you are wondering why, it has to do with memory management and preventing crashes. I personally think 20 is a little low, but since the @include uses an OS dependant file handler, this limitation is set of the safe side.

 

Robert

 

 

 

-----Original Message-----
From: Bengt Bredin [mailto:[EMAIL PROTECTED]
Sent:
Wednesday, May 05, 2004 2:04 AM
To: Witango-Talk
Subject: Witango-Talk: Number of include files

 

Hi list !

I updated my Witango 5.0 Windows Server from 049 to 065 and got this error on an existing working application on a 049 version.

Error

An error occurred while processing your request:

File: results.tcf
Position: Show
Class: Internal
Main Error Number: -508

The number of include files so far within the action exceeds the limit.
Check for an endless loop, or decrease the number of include files.

Meta Stack Trace:

Line

Meta Tag

0001

<@INCLUDE FILE="/LabIT_Web/modules/pdf/req_rid.pdf">

0002

<@ASSIGN NAME=request$Pdf <@INCLUDE FILE="/LabIT_Web/modules/pdf/req_rid.pdf">>

0164

 

 

I use <@include> inside  <@rows>……</@rows> to see if a file exists in a specific directory, if it does I show a link for it.
I haven’t had any problems with this in earlier versions. I have look for differences in witango.ini between the versions but cant find any differences.

Any ideas ?

 

/Best regards

Bengt Bredin

 

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to