<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I'm using PLT Scheme 204 on Windows 2000</FONT></DIV>
<DIV><FONT size=2>(downloaded from the DrScheme site and not CVS.)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I've written a stand alone exe app that reads
from</FONT></DIV>
<DIV><FONT size=2>the environment and stdin and writes to stdout.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>This app is intended to be used as a CGI script.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Everything works fine when run in a DOS window.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>When it runs in IIS the problems begin.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT size=2>For example if calling</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2> (current-directory)
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>returns</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
\inetpub\wwwroot\myapp\subdir</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>when run under IIS it truncates the last</FONT></DIV>
<DIV><FONT size=2>subdirectory returning instead:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><FONT face=Arial size=2>
\inetpub\wwwroot\myapp</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>The exe is located in</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>
<DIV><FONT face=Arial size=2>
\inetpub\wwwroot\myapp\subdir</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>For some reason (current-directory)
looses</FONT></DIV>
<DIV>the last subdirectory in the path when run under</DIV>
<DIV>IIS.</DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>A second problem is a null pointer reference.</FONT></DIV>
<DIV>Again everything runs okay in a DOS window.</DIV>
<DIV>Under IIS the exe is caught trying to read position</DIV>
<DIV>0:</DIV>
<DIV><FONT face=Arial> The instruction at
"0x00000000"referenced</FONT></DIV>
<DIV><FONT face=Arial> memory at
"0x00000000". The memory could</FONT></DIV>
<DIV><FONT face=Arial> not be
"read".</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>It appears to be caused by code similar to the
following.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial> (define
_my-flag #f)</FONT></DIV>
<DIV><FONT face=Arial> ....</FONT></DIV>
<DIV><FONT face=Arial> (set!
_my-flag ( ) )</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I've moved the _my-flag definition to another location in
the module</FONT></DIV>
<DIV>thinking it might be getting over written by an array out of bounds
error</DIV>
<DIV>or the like and thus being set to the null pointer. This had no
effect on</DIV>
<DIV>the error.</DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thanks in advance for any help.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>John</FONT></DIV>
<DIV> </DIV></FONT></DIV></FONT></DIV></BODY></HTML>