473,414 Members | 1,636 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,414 software developers and data experts.

MSACCESS.EXE - Application Error

DFS
I get these errors intermittently using a 3rd party COM object, under VB or
Access (in a module). These seem to be happening at a similar instruction
location.

Instruction at 0x77fcb032 referenced memory at 0xd18b4104. Memory could not
be "written"
Instruction at 0x77fcb7cf referenced memory at 0x00000000. Memory could not
be "written"
Instruction at 0x77fcbee8 referenced memory at 0xfffffffe. Memory could not
be "written"

Relevant pseudo-code:

1. Do Loop (ie 2000 times)
2. Dim obj as new ObjectType
3. response = obj.Method()
4. obj.close
5. Next

The errors always happen on the 3rd line. I've tried many variations of Dim
or Set and Close or Nothing. The code always crashes around the 500th
iteration, at the above memory locations.

Any ideas or explanations?

Thanks
Nov 12 '05 #1
3 6679
On Fri, 24 Oct 2003 19:40:07 -0400, "DFS" <no******@nospam.com> wrote:

Contact the vendor. The second error is a null pointer assigment -
could be embarrasing for them.

-Tom.

I get these errors intermittently using a 3rd party COM object, under VB or
Access (in a module). These seem to be happening at a similar instruction
location.

Instruction at 0x77fcb032 referenced memory at 0xd18b4104. Memory could not
be "written"
Instruction at 0x77fcb7cf referenced memory at 0x00000000. Memory could not
be "written"
Instruction at 0x77fcbee8 referenced memory at 0xfffffffe. Memory could not
be "written"

Relevant pseudo-code:

1. Do Loop (ie 2000 times)
2. Dim obj as new ObjectType
3. response = obj.Method()
4. obj.close
5. Next

The errors always happen on the 3rd line. I've tried many variations of Dim
or Set and Close or Nothing. The code always crashes around the 500th
iteration, at the above memory locations.

Any ideas or explanations?

Thanks


Nov 12 '05 #2
While Tom's advice is certainly valid, I don't think the repeated Dim As New
statement is doing any good in your code.

Try:

1. Dim obj As ObjectType
2. Do Loop (ie 2000 times)
3. Set obj = New ObjectType
4. response = obj.Method()
5. obj.close
6. Set obj = Nothing
7. Next

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(No private e-mails, please)

"DFS" <no******@nospam.com> wrote in message
news:vp************@corp.supernews.com...
I get these errors intermittently using a 3rd party COM object, under VB or Access (in a module). These seem to be happening at a similar instruction
location.

Instruction at 0x77fcb032 referenced memory at 0xd18b4104. Memory could not be "written"
Instruction at 0x77fcb7cf referenced memory at 0x00000000. Memory could not be "written"
Instruction at 0x77fcbee8 referenced memory at 0xfffffffe. Memory could not be "written"

Relevant pseudo-code:

1. Do Loop (ie 2000 times)
2. Dim obj as new ObjectType
3. response = obj.Method()
4. obj.close
5. Next

The errors always happen on the 3rd line. I've tried many variations of Dim or Set and Close or Nothing. The code always crashes around the 500th
iteration, at the above memory locations.

Any ideas or explanations?

Thanks

Nov 12 '05 #3
On Sat, 25 Oct 2003 11:45:02 GMT, "Douglas J. Steele"
<NOSPAM_djsteele@NOSPAM_canada.com> wrote:

Yes, DFS, please report back your findings. I think putting the Dim
statement outside of the loop has no effect in VBA. Unlike in other
languages where location does matter (e.g. C++, VB.NET).

Rather I would try something like:
response = obj.OtherMethod()
or
response = obj.Property
to see if the leak is located in Method or in the object's
initialization code.

-Tom.

While Tom's advice is certainly valid, I don't think the repeated Dim As New
statement is doing any good in your code.

Try:

1. Dim obj As ObjectType
2. Do Loop (ie 2000 times)
3. Set obj = New ObjectType
4. response = obj.Method()
5. obj.close
6. Set obj = Nothing
7. Next


Nov 12 '05 #4

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

Similar topics

3
by: Brad Burke | last post by:
From a windows .Net app, I need to 1) check if MSAccess is already open to a certain Access application. If so, then open a form and find a certain record. 2) If not open, then open MSAccess and...
15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
0
by: Richard Beacroft | last post by:
Trying to write a C# Windows App to export all objects and content from 2 MSAccess 97 databases for comparison analysis. very little documentation found. Have managed to instantiate MSAccess,...
4
by: Annick Van Hoof | last post by:
Hi, I'm having my ASP.NET application hosted at a Windows 2003 server (IIS6). This works almost all the time (I have uptimes of 100% on most days), but then all of a sudden a few days in a row I...
14
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
0
by: Siegfried Heintze | last post by:
This program works fine on my desktop when I grant full control of the MSAccess database to everyone. However, when I put it on my hosting service with no impersonation, I now get this error (see...
0
by: Steven Thomas | last post by:
I have a vb.net application that calls a sub in MSAccess. I have loaded the office interops and everything works fine if there are no errors. If the sub in Access produces an Error then my...
2
by: reidarT | last post by:
I am making an installation program for an Access application. The application is run on both Office 2000, 2002, 2003 and soon 2007 versions of Office, When I install the application I need a...
0
by: bbrewder | last post by:
I am struggling with some MSAccess automation issues. Basically, we have a .Net application that uses MSAccess for reporting (legacy code). We are able to launch MSAccess fine and even work with...
9
by: jdaelhousen | last post by:
I have a bit of a problem I'm hoping someone can shed some light on... I have a VB.Net console application written in VS 2003 that produces a .exe file that now sits on a Windows 2000 server...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.