<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-7" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hawai,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Thank you for the response, but neither of your
suggestions fixed the identified problem.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> If you obtained different results via testing, please
share.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Subsequent to my post, I deinstalled Racket version 5.3.1 and
reinstalled v 5.3, and confirmed that the problem identified in my post no
longer occurred.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Based on this, I would assert the issue is specific to
5.3.1 vs 5.3 compilation behavior.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT size=2>R./</FONT></DIV>
<DIV><FONT size=2>Zack</FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A href="mailto:highfly22@gmail.com" title=highfly22@gmail.com>Haiwei Zhou</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
href="mailto:lzgaller@optonline.net" title=lzgaller@optonline.net>Galler</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
href="mailto:users@racket-lang.org" title=users@racket-lang.org>users</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, January 27, 2013 6:58
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [racket] raco exe difficutly
with Release 5.3.1 & stateless webserver</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>
<DIV>
<DIV>
<DIV>Hi,<BR><BR></DIV>You should add function do-not-return at the end of the
file. <BR></DIV>Or use command <SPAN class=""></SPAN><SPAN
class="">plt-web-server<BR><BR></SPAN></DIV><SPAN
class="">Regards,<BR>Haiwei<BR></SPAN></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On 27 January 2013 13:02, Galler <SPAN dir=ltr><<A
href="mailto:lzgaller@optonline.net"
target=_blank>lzgaller@optonline.net</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex">Hello,<BR><BR>I
encountered difficulty compiling a #lang web server application after
upgrading to v.5.3.1 from v5.3 last night. O/S is WinXP service pack
3<BR><BR>The executable would compile into an .exe file.<BR><BR>But when
run, a console window would briefly open then close.<BR><BR>The
program did not execute.<BR><BR>I was able to reproduce the bad behavior
with the following minimal source code, and the following raco script, which
appear below.<BR><BR><BR>I further note that the minimal program can be
successfully run in DrRacket, and can be compiled and run *without*
encountering the problem by adding the -l launcher flag to the raco script.
Successful execution results in a browser window opening with 'hello world'
appearing in the loaded document.<BR><BR>Any guidance would be sincerely
appreciated.<BR><BR>Thanks<BR><BR>Zack<BR><BR><BR>;START RACO
SCRIPT<BR><BR>raco exe simplest-raco-failure.rkt<BR><BR>;END RACO
SCRIPT<BR><BR><BR>;START SOURCE CODE<BR><BR>#lang web-server<BR><BR>(require
web-server/servlet-env)<BR><BR>(define (start request)<BR> (let
((response-generator (ë (make-url)<BR>
(response/xexpr `(html (head )<BR>
(body
"hello world"))))))<BR> (send/suspend/dispatch
response-generator)))<BR><BR><BR><BR>(serve/servlet start<BR>
#:stateless? #t<BR>
#:launch-browser? #t<BR>
#:connection-close?
#t<BR> #:quit?
#f<BR> #:listen-ip
#f<BR> #:port
8000<BR>
#:servlet-path "/")<BR><BR><BR>;END SOURCE
CODE<BR><BR>____________________<BR> Racket Users list:<BR> <A
href="http://lists.racket-lang.org/users"
target=_blank>http://lists.racket-lang.org/<U></U>users</A><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>