diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8827eece80..c89364e6aa 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,16 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-01-27 00:21 UTC+0100 Viktor Szakats (harbour.01 syenar hu) + * contrib/examples/uhttpd/uhttpd.prg + + Added callstack in RTE message (ugly but useful). + ! Fixed RTE when displaying server status. + (might have broken non-inet-mode) + + * contrib/examples/uhttpd/hbmk_b32.bat + * contrib/examples/uhttpd/hbmk_vc.bat + + Trying to shutdown server before build. + 2009-01-26 15:07 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/gtwvg/gtwvg.c * harbour/contrib/gtwvg/gtwvg.h @@ -18,23 +28,23 @@ behavior in GTWVG with GUI elelments. 2009-01-26 23:37 UTC+0100 Viktor Szakats (harbour.01 syenar hu) - * contrib/examples/uhttpd/hbmk_b32.bat - ! Missed update from previous commit. + * contrib/examples/uhttpd/hbmk_b32.bat + ! Missed update from previous commit. 2009-01-26 23:32 UTC+0100 Viktor Szakats (harbour.01 syenar hu) - + contrib/examples/uhttpd/hbmk_vc.bat - + Added MSVC make file. + + contrib/examples/uhttpd/hbmk_vc.bat + + Added MSVC make file. - * contrib/examples/uhttpd/socket.c - ! Made it compile with MSVC. - ! Added SVN header. + * contrib/examples/uhttpd/socket.c + ! Made it compile with MSVC. + ! Added SVN header. - * contrib/examples/uhttpd/uhttpd.prg - + contrib/examples/uhttpd/uhttpdc.c - + C level stuff moved to separate file. + * contrib/examples/uhttpd/uhttpd.prg + + contrib/examples/uhttpd/uhttpdc.c + + C level stuff moved to separate file. - ; NOTE: I'm getting an "Argument error: +" when browse - to http://localhost:8082 (using Chrome if that matters). + ; NOTE: I'm getting an "Argument error: +" when browse + to http://localhost:8082 (using Chrome if that matters). 2009-01-26 22:57 UTC+0100 Viktor Szakats (harbour.01 syenar hu) * source/rdd/usrrdd/example/exhsx.prg diff --git a/harbour/contrib/examples/uhttpd/hbmk_b32.bat b/harbour/contrib/examples/uhttpd/hbmk_b32.bat index b19c0f93d8..b11ed812a3 100644 --- a/harbour/contrib/examples/uhttpd/hbmk_b32.bat +++ b/harbour/contrib/examples/uhttpd/hbmk_b32.bat @@ -43,6 +43,8 @@ if %UHTTP_GD_SUPPORT%.==yes. SET UHTTP_GD_LIBS=hbgd.lib bgd.lib if %UHTTP_INET_SUPPORT%.==yes. SET UHTTP_INET_DEF=-DUSE_HB_INET if %UHTTP_INET_SUPPORT%.==no. SET UHTTP_INET_SOCKET=socket.c +if exist uhttpd.exe uhttpd -s + ..\..\..\bin\harbour uhttpd /n /es2 /w3 /i..\..\..\include %UHTTP_GD_DEF% %UHTTP_INET_DEF% if errorlevel 1 goto DOERROR bcc32 -O2 -tW -d -a8 -I..\..\..\include -L..\..\..\lib uhttpd.c uhttpdc.c %UHTTP_INET_SOCKET% hbdebug.lib hbvmmt.lib hbrtl.lib gtwvt.lib gtwin.lib gtgui.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbcpage.lib hbsix.lib hbcommon.lib hbpcre.lib hbhsx.lib hbzlib.lib xhb.lib hbct.lib cw32mt.lib %UHTTP_GD_LIBS% diff --git a/harbour/contrib/examples/uhttpd/hbmk_vc.bat b/harbour/contrib/examples/uhttpd/hbmk_vc.bat index 93437da25e..4bd001c4a5 100644 --- a/harbour/contrib/examples/uhttpd/hbmk_vc.bat +++ b/harbour/contrib/examples/uhttpd/hbmk_vc.bat @@ -43,6 +43,8 @@ if %UHTTP_GD_SUPPORT%.==yes. SET UHTTP_GD_LIBS=hbgd.lib bgd.lib if %UHTTP_INET_SUPPORT%.==yes. SET UHTTP_INET_DEF=-DUSE_HB_INET if %UHTTP_INET_SUPPORT%.==no. SET UHTTP_INET_SOCKET=socket.c +if exist uhttpd.exe uhttpd -s + ..\..\..\bin\harbour uhttpd /n /es2 /w3 /i..\..\..\include %UHTTP_GD_DEF% %UHTTP_INET_DEF% if errorlevel 1 goto DOERROR cl -nologo -O2 -W3 -I..\..\..\include uhttpd.c uhttpdc.c %UHTTP_INET_SOCKET% /link /subsystem:windows /libpath:..\..\..\lib hbcpage.lib hbdebug.lib hbvmmt.lib hbrtl.lib gtwin.lib hblang.lib hbrdd.lib hbmacro.lib hbpp.lib rddntx.lib rddcdx.lib rddfpt.lib hbsix.lib hbcommon.lib hbpcre.lib hbzlib.lib user32.lib wsock32.lib advapi32.lib hbct.lib gdi32.lib hbwin.lib hbhsx.lib gtwvt.lib %UHTTP_GD_LIBS% xhb.lib diff --git a/harbour/contrib/examples/uhttpd/uhttpd.prg b/harbour/contrib/examples/uhttpd/uhttpd.prg index 1b5d92026a..ce7ce49c1a 100644 --- a/harbour/contrib/examples/uhttpd/uhttpd.prg +++ b/harbour/contrib/examples/uhttpd/uhttpd.prg @@ -84,6 +84,7 @@ #include "fileio.ch" #include "common.ch" #include "inkey.ch" +#include "error.ch" #include "hbextern.ch" // need this to use with HRB @@ -176,6 +177,8 @@ THREAD STATIC t_hProc MEMVAR _SERVER, _GET, _POST, _REQUEST, _HTTP_REQUEST, m_cPost +ANNOUNCE ERRORSYS + FUNCTION MAIN( ... ) LOCAL nPort, hListen, hSocket, aRemote, cI, xVal LOCAL aThreads, nStartThreads, nMaxThreads, nStartServiceThreads @@ -196,6 +199,8 @@ LOCAL cCmdPort, cCmdDocumentRoot, lCmdIndexes, nCmdStartThreads, nCmdMaxThreads SysSettings() + ErrorBlock( { | oError | httpd_DefError( oError ) } ) + // ----------------------- Parameters defaults ----------------------------- // defaults not changeble via ini file @@ -652,6 +657,8 @@ LOCAL aI nThreadId := hb_threadID() //nThreadIdRef := nThreadId + ErrorBlock( { | oError | httpd_DefError( oError ) } ) + WriteToConsole( "Starting ProcessConnections() " + hb_CStr( nThreadId ) ) IF hb_mutexLock( s_hmtxBusy ) @@ -850,6 +857,8 @@ LOCAL nRcvLen, nContLen LOCAL aI #endif + ErrorBlock( { | oError | httpd_DefError( oError ) } ) + nThreadId := hb_threadID() //nThreadIdRef := nThreadId @@ -1670,7 +1679,7 @@ STATIC PROCEDURE ShowServerStatus() uWrite( '
')
//uWrite( '