Solved

cgi hangs when submitting a form

Posted on 1998-09-25
6
225 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
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…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…

746 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

11 Experts available now in Live!

Get 1:1 Help Now