473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is there an easy way to find out If all OBJECTS are closed?

I have several pages ( ASP) that were working OK on NT4.
We moved it to Server 2003. At random , it appears that the
Server.CreateObject fails.

I've looked through the code and it looks OK.

Is there an easy way to make sure I have Closed all
CONNECTIONS
RecordSets
etc.

TIA
Steve
Jun 27 '08 #1
4 2252
sh***@uaex.edu wrote:
I have several pages ( ASP) that were working OK on NT4.
We moved it to Server 2003. At random , it appears that the
Server.CreateObject fails.

I've looked through the code and it looks OK.

Is there an easy way to make sure I have Closed all
CONNECTIONS
RecordSets
No.
Leaving them open MIGHT cause memory leaks that COULD cause IIS to need
to be restarted, however, this would not impact CreateObject. There is
something else going on.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 27 '08 #2
On Apr 30, 9:09 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
sh...@uaex.edu wrote:
I have several pages ( ASP) that were working OK on NT4.
We moved it to Server 2003. At random , it appears that the
Server.CreateObject fails.
I've looked through the code and it looks OK.
Is there an easy way to make sure I have Closed all
CONNECTIONS
RecordSets

No.
Leaving them open MIGHT cause memory leaks that COULD cause IIS to need
to be restarted, however, this would not impact CreateObject. There is
something else going on.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
I have tried to close every Recordset.( I might have missed one)
I'm calling a DLL and it has been working OK.
I've looked through the code twice to make sure that I have

Set oDLL=nothing

Here's the error message( It may appear once every two weeks or
longer)

Error: File /fcsSelectPestMgmt.asp CreateObject Exception. The
CreateObject of '(null)' caused exception C0000005..

It acts as if ,on one day, the DLL becomes unregistered.

I'm running out of clues on how to solve this.

TIA
Steve
Jun 27 '08 #3
sh***@uaex.edu wrote:
On Apr 30, 9:09 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>sh...@uaex.edu wrote:
>>I have several pages ( ASP) that were working OK on NT4.
We moved it to Server 2003. At random , it appears that the
Server.CreateObject fails.
>>I've looked through the code and it looks OK.
>>Is there an easy way to make sure I have Closed all
CONNECTIONS
RecordSets

No.
Leaving them open MIGHT cause memory leaks that COULD cause IIS to
need to be restarted, however, this would not impact CreateObject.
There is something else going on.

I have tried to close every Recordset.( I might have missed one)
I'm calling a DLL and it has been working OK.
I've looked through the code twice to make sure that I have

Set oDLL=nothing

Here's the error message( It may appear once every two weeks or
longer)

Error: File /fcsSelectPestMgmt.asp CreateObject Exception. The
CreateObject of '(null)' caused exception C0000005..

It acts as if ,on one day, the DLL becomes unregistered.

I'm running out of clues on how to solve this.
I'm afraid I'm not going to of much help here, except to reiterate that
you are likely chasing a red herring at the moment. Based on my
admittedly faulty memory, a C0000005 exception is not one of the
symptoms caused by failure to close and destroy ADO objects. From
http://tutorials.aspfaq.com/8000xxxx...5-errors.html:

This could be because you are trying to create an ADO recordset object
as a session variable. See http://www.aspfaq.com/show.asp?id=2053 and
http://support.microsoft.com/default.aspx/kb/262681

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Jun 27 '08 #4

<sh***@uaex.eduwrote in message
news:96**********************************@x35g2000 hsb.googlegroups.com...
On Apr 30, 9:09 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
sh...@uaex.edu wrote:
I have several pages ( ASP) that were working OK on NT4.
We moved it to Server 2003. At random , it appears that the
Server.CreateObject fails.
I've looked through the code and it looks OK.
Is there an easy way to make sure I have Closed all
CONNECTIONS
RecordSets
No.
Leaving them open MIGHT cause memory leaks that COULD cause IIS to need
to be restarted, however, this would not impact CreateObject. There is
something else going on.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

I have tried to close every Recordset.( I might have missed one)
I'm calling a DLL and it has been working OK.
I've looked through the code twice to make sure that I have

Set oDLL=nothing

Here's the error message( It may appear once every two weeks or
longer)

Error: File /fcsSelectPestMgmt.asp CreateObject Exception. The
CreateObject of '(null)' caused exception C0000005..

It acts as if ,on one day, the DLL becomes unregistered.

I'm running out of clues on how to solve this.
C0000005 is the classic Access violation error.

All the setting stuff to nothing won't help you solve this (and is
superflous anyway).

The most likely cause is the DLL doing bad things that it got away with on
NT but 2003 is less happy about. One area you should research is Data
Execution Protection some older DLLs would place something the OS considers
to be executable code (usually a vtable) in data memory. Later versions of
windows can block the execution of such code.
--
Anthony Jones - MVP ASP/ASP.NET
Jun 27 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas HAMEL | last post by:
Hello, I'm working on an access application, at the opening of the application I create some objects (in order to do this I use the AutoExec action). I want to be sure that these objects are...
1
by: MS | last post by:
When is it appropriate to "close" objects? Example. Which of these objects should be "closed"? Dim Wsp as Workspace Dim Dbf as DataBase Dim Rstb as Recordset Dim Tdf As TableDef Dim Cdb As...
6
by: Jules Winfield | last post by:
I'm loving VS 2005. These are my questions and comments so far: BUG: Autoformatting ================ I've turned off virtually all autoformatting, but there is still one place where it rears...
13
by: Simon Harvey | last post by:
Hi All, I have a colleague that I wprk with that develops using ASP. I develop using ASP.net. He seems to make sites much faster than me and I am wondering if its because of the two different...
16
by: Java script Dude | last post by:
Creating a method of object (Object.prototype.classOf ...) is not the correct way because of a (as expected) flaw in IE where DOM Elements does not inherit from Object. As a result it is best to...
3
by: Terry Hancock | last post by:
Is there an *easy* way to make an object immutable in python? Or perhaps I should say "one obvious way to do it"? Oughtn't there to be one? I've found a thread on how to do this, which...
13
by: Adam Right | last post by:
Hi, I am developing a financial application and you know that there are huge amount of data in these similar aplications. I have a MDIChild form and the other forms are opened in this form. For...
2
by: Steven D'Aprano | last post by:
I have found myself writing functions rather like these: def openfile(filename): if filename == '-': # convention for shell scripts in Unix-land is to use # '-' for stdin/stdout for...
0
by: shall | last post by:
I have several pages ( ASP) that were working OK on NT4. We moved it to Server 2003. At random , it appears that the Server.CreateObject fails. I've looked through the code and it looks OK. ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.