Link to home
Start Free TrialLog in
Avatar of bjv
bjv

asked on

cgi hangs when submitting a form

I have IIS 4.0(evaluation copy) running on windows NT4.0 with servicepack3 and optionpack.  My CGI is an exe written in C which outputs a form and the same CGI is processing the posted data.  It is working fine till it outputs the form and when I submit the form the CGI hangs.  What could be wrong?.  

PLEASE HELP !!!

Avatar of bjv
bjv

ASKER

Edited text of question
It could be anything.
The first thing you should do is to figure out where exactly it hangs. Put some debug output and try to isolate the problem part.

The most  possible causes are:

1)  you have an infinite loop somewhere
2)  Windows NT is not that nice (CGI wise) you probably have a null pointer somewhere.

Please post a copy of your cgi in order to help you out

jorge
Are you flushing stdout?
bjv, What kind of compiler are you using ? I have quite a few CGIs in C for my current project using Visual C++ with IIs 4.0. I did have a problem similiar to what you have stated. Make sure that you are using a 32bit compile and not 16 bit. Your CGI will function, but it will not terminate... If this is not the answer, how about posting some soucrce. Sounds like you are going through the same type of problems that I have had...

Randall
ASKER CERTIFIED SOLUTION
Avatar of rcashon
rcashon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial