Alaska Software Inc. - Read Error 0 when first loading a web .dll
Username: Password:
AuthorTopic: Read Error 0 when first loading a web .dll
Richard A. PulliamRead Error 0 when first loading a web .dll
on Fri, 03 Sep 2004 04:26:02 -0400
Once in a while I get a "Read Error (0)" when I start the
web program.

I stop and restart WAA server and is back to normal.

Any clue as to what causes this?  I am sure I am registering every form I
use.  By the way.... How do I know I have to register a form?  Do I put the
name of every function that has the line oHTML:form() or of every
function that does something like oHTML:xxxx (example:
oHTML:put('supercalafradiulisticespialidosias')

Thanks in advance.  Wish Alaska would spend a bit more time in help
documentation.  Very few examples and trial and error is the pits.
Phil Ide
Re: Read Error 0 when first loading a web .dll
on Fri, 03 Sep 2004 10:29:57 +0100
Richard,

> Once in a while I get a "Read Error (0)" when I start the
> web program.
> 
> I stop and restart WAA server and is back to normal.
> 
> Any clue as to what causes this?

I've not yet come across this, although several people have reported it.

> I am sure I am registering every form I
> use.  By the way.... How do I know I have to register a form?  Do I put the
> name of every function that has the line oHTML:form() or of every
> function that does something like oHTML:xxxx (example:
> oHTML:put('supercalafradiulisticespialidosias')

Actually, you don't have to declare any form functions in the _register()
function.  I think at one time Alaska intended to force a check on whether
a form was 'registered' before allowing access to it from CGI, but such
checking was never enforced.

Your _register() function must still exist though 

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

WP Corp Support Can't Be Beat!
Thomas Braun Re: Read Error 0 when first loading a web .dll
on Fri, 03 Sep 2004 14:32:15 +0200
Phil Ide wrote:

>> I stop and restart WAA server and is back to normal.
>> 
>> Any clue as to what causes this?
> 
> I've not yet come across this, although several people have reported it.

The error message is generated in waa1gate.c :

   /*
    * Wait for a CGICMD_READY from server.
    */
  cData = msgBuf;
  msgLen = sizeof(msgBuf);
  if(!getMessage(conSock, &nCmd, &cData, &msgLen))
    goto readError;

[...]

 readError:
  printErrorHeader("Read error");


So there seems to be going something wrong in the socket communication
between the gateway and the waa server... 

Thomas Braun