Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IsDefined("form.firstname") causes IIS to hang

Status
Not open for further replies.

johngrg

Programmer
Apr 19, 2007
17
US
<cfif IsDefined("form.firstname")>
<cfset firstname = #form.firstname# >
</cfif>

<cfif IsDefined("form.lastname")>
<cfset lastname = #form.lastname# >
</cfif>

IIS server (6.0) hangs when a new pop-up window is opened from classic asp webpage and the above Cold fusion code is executed. It runs 2-3 times before this problem occurs and I have to restart IIS. If I comment out the above code, the pop up windows opens w/o problem. In the Event Viewer System log file, following error is recorded. What does this error mean? How can I fix this problem? Or the workaround for the above code. Your help will be greatly appreciated.

Application Popup: InetInfo.exe - Application Error: The instruction at "0x77fcc489" referenced memory at "0x65726472". The memory could not be written.
 
i googled your problem and came up with couple sites asking to run memory test programs(?) I have never done this before so you might want to google.


hope it helps...

Can you also try this instead?

<cfif IsDefined("form.firstname") AND form.firstName NEQ ''>
<cfset fName = form.firstname >
</cfif>

<cfif IsDefined("form.lastname") AND form.lastName NEQ ''>
<cfset lname = form.lastname >
</cfif>

I am just curious if this will help.

 
Ran the chkdsk. Didn't help.

Tried the second option, it doesn't seem to be capturing the value from the firstname/lastname input boxes.

any suggestions? Thx.
 
Hold on a sec, you are launching a pop-up. You need to try something like this:

<cfoutput>
<script type="text/javascript">
window.open(myPopUp.cfm, 'myPops', 'toolbar=0,scrollbars=1');
document.myPops.firstName.value = #FORM.firstName#;
document.myPops.lastName.value = #FORM.lastName#;
document.forms[0].submit();
</script>
</cfoutput>



 
first form:

<script type="text/javascript">
function testClicky() {
window.open('test2.cfm?firstName='+document.form1.firstname.value+'&lastname='+document.form1.lastname.value, 'test', 'toolbar=0,scrollbars=1');
}
</script>


<form id="form1" name="form1" method="post" action="">
<label>first name
<input type="text" name="firstname" />
</label>
<label>last name
<input type="text" name="lastname" />
</label>
<input name="clicky" type="submit" value="clicky" onclick="testClicky();"/>
</form>


the pop-up:
<cfoutput>
<form id="form1" name="test" method="post" action="">
<label>first name
<input type="text" name="firstname" value="#URL.firstname#" />
</label>
<label>last name
<input type="text" name="lastname" value="#URL.lastname#" />
</label>
</form>
</cfoutput>

You might want to clean it up a little. Hope it helps..


 
Since moving to new server, it's working correctly now.
Seems the CF app server was having some issues. Greatly appreciate your help. Thx.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top