Solved

cgi hangs when submitting a form

Posted on 1998-09-25
6
227 Views
Last Modified: 2013-12-25
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 !!!

0
Comment
Question by:bjv
6 Comments
 

Author Comment

by:bjv
ID: 1828820
Edited text of question
0
 
LVL 1

Expert Comment

by:Bonev
ID: 1828821
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.

0
 
LVL 7

Expert Comment

by:jconde
ID: 1828822
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
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 1

Expert Comment

by:slinky
ID: 1828823
Are you flushing stdout?
0
 
LVL 1

Expert Comment

by:rcashon
ID: 1828824
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
0
 
LVL 1

Accepted Solution

by:
rcashon earned 50 total points
ID: 1828825
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

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now