RE: Debug / Release Problem
"Stephen F. Booth" <[email protected]> Wed, 30 Oct 2002 09:55:06 -0500
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <000501c28024$59cc89b0$60c0bd3f@hades> |
I realize I'm very little help since I don't own a Windows compiler, but something comes to mind that I believe I've seen in the past. I remember building a library and seeing similar problems when switching from Debug to Release or vice-versa when I was linking to the wrong version of some system library. Perhaps the cgicc project files are linking to the release libs, so on Debug mode there is a multithreading issue? That's all I can think of. Maybe someone who actually develops on Windows can help. -Stephen > -----Original Message----- > From: [email protected] [mailto:[email protected]] On Behalf > Of [email protected] > Sent: Wednesday, October 30, 2002 8:15 AM > To: [email protected] > Subject: [help-cgicc] Debug / Release Problem > > I am working on a CGI application that takes a few input parameters, does > some processing and outputs the result as XML stream back to the CGI > interface. > The actual internal workings are more or less irrelevant. > > The application works fine in the release version, but in the debug > version, > the result apparently is sent to the CGI interface, but doesn't seem to > arrive there. > > I have managed to track down this issue to a single line of code. When > this > line is active, the debug version doesn't work, when it is commented out, > it > DOES work. > > I've got a hard time believing that, but see for yourself: > > [snip] > const_form_iterator itStartCountry = cgi.getElement ("StartCountry"); > if (itStartCountry == (*cgi).end () || itStartCountry->isEmpty ()) > { > writer.error2XMLReply ("Parameter 'StartCountry' is missing."); > return 0; > } > else strStartCountry = **itStartCountry; > [snip] > > (writer.error2XMLReply is just a XML writer that wraps the error message > into XML...) > > The code line in question is the last one ("else strStartCountr ...") I > don't really think I am doing anything special here, but the error is > completely > reproducible on multiple systems all running W2K / Apache 2.0 / IE6 / > cgicc > 3.2 > > Just to make that absolutely clear: The application doesn't crash, it > doesn't throw any exceptions (as far as I can tell...), the Apache error > logs don't > have any entries. The only symptoms in the debug versions are that instead > of displaying the XML results (like in the release version), the browser > keeps > 'waiting' (displaying the rotating logo) and after some time, times out. > The > CGI application stays in memory as a non-killable process. > > I can't get build the cgicc library with logging support enabled, so there > is no chance on hints from there. I don'T know either how to run a CGI > application in debug mode (so I can step through it...), but maybe someone > has a tip > concernign that... > > Any ideas ?!? > > TIA > > Steve > > -- > +++ GMX - Mail, Messaging & more http://www.gmx.net +++ > NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen! > > > > _______________________________________________ > help-cgicc mailing list > [email protected] > http://mail.gnu.org/mailman/listinfo/help-cgicc