Solved

cgi hangs when submitting a form

Posted on 1998-09-25
6
236 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Autoit restart command not working 6 76
Batch command to determine the Office version installed 2 201
Bulk Reorder File Names 4 69
Python variable _ manually assigned 9 90
In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

789 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