Re: Echo.c observation (and corresponding dumb question)
Ken Gustafson <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Michael, Thanks for the thoughts. Yes, I deployed myecho.fcgi as normal (and restarted apache), giving the stated results. The echo-cpp example compiles, installs, and echo's the request environment perfectly. I'm scratching my head over this. My assumption that 'C' code always works in a 'C++' program must be way off. For what it's worth, myecho.exe executes 'ok' in a dos window, echoing the shells environment variables (PATH=, ComSpec=, TMP=, ...) -Ken On 7/24/05, Michael Hartley <michael.hartley-jEoFCcbHCOQze0waTqBjZBy+ShKaMYb+@public.gmane.org> wrote: > Hi, > > Have you tried stopping Apache, deploying the newly compiled echo.exe to > the fcgi-bin directory then restarting apache? What results do you get if > you do that? > > Have you tried compiling and installing the echo-cpp.cpp example? > > Kind regards, > Michael Hartley > http://www.openfieldsolutions.co.uk > > On Sun, 24 Jul 2005 02:48:10 +0100, Ken Gustafson <[email protected]> > wrote: > > > Hi all - thanks in advance for any comments on this: > > Running windows XP; apache 1.3.33; mod_fastcgi 2.4.1; MS VC++ 6 > > I've successfully compiled and ran echo.c (as a 'C' app) from the > > supplied MS VC++ project files...apache output is perfect. > > I then created a new C++ project (myecho.cpp), copied/pasted echo.c > > into myecho.cpp, and compiled (as a 'C++' app) fine. > > On execution though, the (static) application does not echo the proper > > request environment; it's always a mirror of the initial environment > > (output below): > > > > FastCGI echo > > > > Request number 4, Process ID: 3476 > > > > No data from standard input. > > > > Request environment: > > SystemRoot=C:\WINDOWS > > _FCGI_SHUTDOWN_EVENT_=1892 > > _FCGI_MUTEX_=1944 > > > > Initial environment: > > SystemRoot=C:\WINDOWS > > _FCGI_SHUTDOWN_EVENT_=1892 > > _FCGI_MUTEX_=1944 > > > > <dumb_question> > > It appears as though the server passed request environment is not > > accessible. > > Is there some #ifdef __cplusplus directive the compiler sees and > > changes what environ points to? Could it be MS VC++? > > </dumb_question> > > Bewildered newbie... > > Ken > > ___________________________________ > > fastcgi-developers mailing list > > http://fastcgi.com/fastcgi-developers/ > > > > > > -- > > Michael Hartley > Openfield Solutions Ltd > www.openfieldsolutions.co.uk > > > > ___________________________________ > fastcgi-developers mailing list > http://fastcgi.com/fastcgi-developers/ > > > ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/