473,401 Members | 2,127 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,401 software developers and data experts.

Reference a VB 6.0 DLL, causes Access not to be able to close

I reference a DLL that was developed in VB 6.0 in MSAccess program &
Excel add-in.

When I close my Excel add-in, Excel closes without any problem.
When I close my Access program, Access does not closes. The program
closes, but Access remains open and I need to manually end the process
of MSACCESS.EXE.

I use the statements below for declaring and using the DLL.

Public DL As New MyDLL.DLV

DL.process_data

Set DL = Nothing

I erase any arrays I use in VB, for clearing the memory. How can I
solve this problem ?

Thanks a lot in advance!

Aug 20 '07 #1
4 1774
ARC
Is this Access 97 I take it?

I remember having this problem for a database at a company I used to work
for. I'm trying to remember, but it seems to me that it had something to do
with no closing databases.

For example, if you did a:

Set db = currentdb()
set qdef = ....
set rs = qdef.openrecordset.....
Then if you had too many occurences of not having the qdef.close, rs.close,
db.close lines at the end of the proc, then this would cause the problem. I
hope I'm remembering correctly, but it seemed when we went through the code,
and made sure we closed out all db's, the problem went away.
"Chris" <CL*****@gmail.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
>I reference a DLL that was developed in VB 6.0 in MSAccess program &
Excel add-in.

When I close my Excel add-in, Excel closes without any problem.
When I close my Access program, Access does not closes. The program
closes, but Access remains open and I need to manually end the process
of MSACCESS.EXE.

I use the statements below for declaring and using the DLL.

Public DL As New MyDLL.DLV

DL.process_data

Set DL = Nothing

I erase any arrays I use in VB, for clearing the memory. How can I
solve this problem ?

Thanks a lot in advance!

Aug 20 '07 #2
Thanks for your message.

I am developing this in Access 2000.

I tried to close (set to nothing) all recordsets & databases before
setting the variable of DL to nothing.

Shall I do sth with the class in VB 6.0 ?

My class includes functions I am calling in both programs.

Aug 20 '07 #3
I found 2 solutions for my problem. Import all objects of my MDB into
another one, or remove the reference to the VB 6.0 DLL and add it
again. This was the easiest! :-)

Aug 21 '07 #4
I noticed sth else also, reference to VB6.0 DLL should be removed and
added again, every time you create the DLL.
Sep 17 '07 #5

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

Similar topics

6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
1
by: Junior | last post by:
I keep receiving this "The type or namespace name 'CASsEventHandler' could not be found (are you missing a using directive or an assembly reference?)" message in two particular lines, and I've...
2
by: Zippy | last post by:
Some months ago, we requested help from this newsgroup on how to replace the library reference of a database with another library reference, prior to creating an MDE. I got the following answer...
8
by: Adam Louis | last post by:
I would like help resolving this problem. I'm a novice who's been hired to query a hospital database and extract useful information, available to me only in a dynamically generated, downloadable...
4
by: JMCN | last post by:
object invalid or no longer set - confusion of the recordset in access 2003. i am currently converting from access 97 to access 2003. majority of the codes converted over perfectly fine, though...
0
by: Freebase | last post by:
Something changed recently on our W2K SP4 machine when we installed INTERSOLV ODBC software... the following script just opens a connection to an MS-Access DB, gets a record then tears down the...
3
by: Asaf | last post by:
Hi, We have a VB6 application that needs to use a new control written in ..NET v1.1 C#, imported as a COM control. We have tried adding the C# control to the VB6 control both dynamically (using...
6
by: DFS | last post by:
One of my systems grew exponentially - from 13mb to 43mb - after adding some 10 temp tables (with no data), a new form, and about a thousand lines of code. The .mdb has mostly table links, lots of...
5
by: Tony | last post by:
I am continuing to develop an Access 2007 application which was originally converted from Access 2003. In Access 2003 I was able to disable the Access Close button in the top righthand corner of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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
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
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...

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.