Solved

Active Server Pages error 'ASP 0240'

Posted on 2009-07-07
2
946 Views
Last Modified: 2012-05-07
I am suddenly getting the following error in an ASP page:

A ScriptEngine threw exception 'C0000005' in 'IActiveScript::GetScriptState()' from 'CActiveScriptEngine::ReuseEngine()'.

Happens infrequently after IIS is running for a few days. Restarting IIS service fixes the problem.

This page had been working fine. It uses recordsets to hit a database table. The only thing I have changed is that now the page hits a MySQL database with the ODBC driver rather than SQL Server database table. Nothing else has changed. I put in code to make sure all recordsets were closed because I read that open recordsets could cause this problem. Any ideas?
0
Comment
Question by:mdoolittle
2 Comments
 
LVL 9

Accepted Solution

by:
rg20 earned 500 total points
ID: 24798427
not only close but discarding the object

rs.close
set rs = nothing

may have to switch the lines
0
 

Author Comment

by:mdoolittle
ID: 24798559
we'll see if that works- tx
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

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

861 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

28 Experts available now in Live!

Get 1:1 Help Now