Changeset 3006


Ignore:
Timestamp:
2002-02-27T11:47:55+13:00 (22 years ago)
Author:
jrm21
Message:

Modified code for redirection of stderr. Now works with gcc3 and debug
versions of VC++6.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/cgiwrapper.cpp

    r2939 r3006  
    651651      ofstream errout (eout, ios::app);
    652652      delete eout;
    653       // note that the following line appears to cause a runtime
    654       // error using debug versions of VC++ 6.0 (on windows)
    655       cerr = errout;
    656    
     653
     654      // can't do this anymore according to c++ standard...
     655      //cerr = errout;
     656      // ... but can do this instead
     657      cerr.rdbuf(errout.rdbuf());
     658
    657659      // parse the cgi arguments and produce the resulting page if there
    658660      // has been no errors so far
Note: See TracChangeset for help on using the changeset viewer.