Date:  01/22/2004 12:20:56 PM Msg ID:  001827
From:  FoxWeb Support Thread:  001824
Subject:  Re: FoxWeb Channel Stopped Responding.
Which version of FoxWeb are you using?  If you are not using FoxWeb 2.6, please upgrade to it.  Please note that FoxWeb 2.5 contained a couple of important fixes pertaining to the AddScriptTimeout method.  In addition to the fixes, AddScriptTimeout now supports the bFromNow argument, which gives you greater control over its functionality.
 
Removing the IF statement that surrounds AddScriptTimeout in the ProgressBar sample will make it work incorrectly, forcing it to add ten seconds to the timeout, regardless of how many seconds you have left.  The bFromNow argument simplifies this process:
 
PROCEDURE UpdateProgressBar
    LPARAMETERS PercentComplete, StatusText
    Server.AddScriptTimeout(10, .T.)
    ...

Essentially what this does is it only extends the timeout enough to provide at least 10 more seconds from the time of the call.

FoxWeb Support Team
support@foxweb.com email

Sent by Eloy Marroquín on 01/20/2004 10:00:29 AM:
I´m using the ProgressBar application to generate html files and send by blat.exe
 
I have to send 300 emails using blat but Channel Stop
 
my code is OK because it send near to 120 emails before the error MSG
 
I modify the UpdateProgressBar procedure like this :
 
PROCEDURE UpdateProgressBar
 LPARAMETERS PercentComplete, StatusText
* IF (SECONDS() - StartTime) + 15 >= Server.ScriptTimeout
  Server.AddScriptTimeout(10)
* ENDIF

 

the Result HTML Code :

 

<script language="JavaScript">progressBar.update(45, 'Generando archivos');</script>
<script language="JavaScript">progressBar.update(47, 'Generando archivos');</script>
<script language="JavaScript">progressBar.update(48, 'Generando archivos');</script>
<script language="JavaScript">progressBar.update(50, 'Generando archivos');</script>
<script language="JavaScript">progressBar.update(51, 'Enviando mails 1 a 10 de 287');</script>
<script language="JavaScript">progressBar.update(53, 'Enviando mails 11 a 20 de 287');</script>
<script language="JavaScript">progressBar.update(55, 'Enviando mails 21 a 30 de 287');</script>
<script language="JavaScript">progressBar.update(56, 'Enviando mails 31 a 40 de 287');</script>
<script language="JavaScript">progressBar.update(58, 'Enviando mails 41 a 50 de 287');</script>
<script language="JavaScript">progressBar.update(60, 'Enviando mails 51 a 60 de 287');</script>
<script language="JavaScript">progressBar.update(62, 'Enviando mails 61 a 70 de 287');</script>
<script language="JavaScript">progressBar.update(63, 'Enviando mails 71 a 80 de 287');</script>
<script language="JavaScript">progressBar.update(65, 'Enviando mails 81 a 90 de 287');</script>
<script language="JavaScript">progressBar.update(67, 'Enviando mails 91 a 100 de 287');</script>
<script language="JavaScript">progressBar.update(69, 'Enviando mails 101 a 110 de 287');</script>
<script language="JavaScript">progressBar.update(70, 'Enviando mails 111 a 120 de 287');</script>
<HR><BR>
<H3>FoxWeb Message</H3>
<P>The FoxWeb Service has returned the following message:</P>
<B>FoxWeb Channel Stopped Responding.</B>

 

 

Some idea?