Date:  11/12/2010 03:15:58 PM Msg ID:  004216
From:  FoxWeb Support Thread:  004215
Subject:  Re: Error in a script
Do you happen to have code in fw_exit.prg? Could it be that this code is causing the channel to hang, whenever it is runs after the script in question? You may want to add logging code in fw_enter.prg and fw_exit.prg too. The code could run conditionally, based on the value of Request.PathInfo.
 
Also, does this script happen to return a large amount of data to the browser? Under some circumstances this could make the channel appear unresponsive.  
 
FoxWeb Support Team
support@foxweb.com email
Sent by Martin Martin on 11/12/2010 02:16:08 PM:
Hi,
I got a strange problem. One of my script seem to lock channel.
When I'm looking in the channels status, I can see "BUSY".... then "NOT RESPONDING".
I see the name of the script who blocking the channel.

I have no error in the foxweb control center.

so... I changed the 1st line of my script and the last line with this :
 

=STRTOFILE("START"+CHR(10)+CHR(13),"debug.log", .t.)

[...]
Response.Write(lchtmlout)

=STRTOFILE("END"+TRANSFORM(SECONDS()-lnSeco,"999.99999")+CHR(10)+CHR(13),"debug.log", .t.)



After 2min of users trafic... I open the Log file ... and I can see START and END of each request??
the execution time never go over 0.02000 secound

then when I look in the foxweb control center under fwstart.log
I see :

11/12/2010 17:07:54 Restarting Channel 2
11/12/2010 17:08:08 Killed Channel 3: /statusbar.fwx
11/12/2010 17:08:13 Killed Channel 4: /statusbar.fwx
11/12/2010 17:08:20 Restarting Channel 3
11/12/2010 17:08:24 Restarting Channel 4
11/12/2010 17:08:38 Killed Channel 1: /statusbar.fwx
11/12/2010 17:08:43 Killed Channel 2: /statusbar.fwx
11/12/2010 17:08:50 Restarting Channel 1
11/12/2010 17:08:54 Restarting Channel 2
11/12/2010 17:09:08 Killed Channel 3: /statusbar.fwx
11/12/2010 17:09:13 Killed Channel 4: /statusbar.fwx
11/12/2010 17:09:20 Restarting Channel 3
11/12/2010 17:09:24 Restarting Channel 4
11/12/2010 17:09:38 Killed Channel 1: /statusbar.fwx
11/12/2010 17:09:43 Killed Channel 2: /statusbar.fwx
11/12/2010 17:09:50 Restarting Channel 1
11/12/2010 17:09:54 Restarting Channel 2
11/12/2010 17:10:08 Killed Channel 3: /statusbar.fwx
11/12/2010 17:10:13 Killed Channel 4: /statusbar.fwx
11/12/2010 17:10:20 Restarting Channel 3
11/12/2010 17:10:24 Restarting Channel 4
11/12/2010 17:10:38 Killed Channel 1: /statusbar.fwx
11/12/2010 17:10:43 Killed Channel 2: /statusbar.fwx
11/12/2010 17:10:50 Restarting Channel 1
11/12/2010 17:10:54 Restarting Channel 2
11/12/2010 17:11:08 Killed Channel 3: /statusbar.fwx


So ...
How can I debug that script ?
What causing this error ?

Thanks for your help

Martin