LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 504, associated com objects

Solved!
Go to solution

Hello!

I have a "DB Tools Close Connection" vi that is throwing an error 504. When I open the vi, there are notes. One of the notes says, "The Connection object is always closed and deleted, but if it had associated objects,
then report an error indicating that." 

 

The 504 error means it has associated objects... What is an associated object?  Thanks! -  John

0 Kudos
Message 1 of 6
(4,211 Views)
Solution
Accepted by Nathan@home

It means that you have created recordset objects (most likely for queries) on that connection that you didn't close explicitly before attempting to close the connection.

Rolf Kalbermatter
My Blog
Message 2 of 6
(4,187 Views)

Thanks Rolf, Any suggestions on how to make this error go away? - Nathan

0 Kudos
Message 3 of 6
(4,123 Views)

Let's see.....

 

How about closing those recordsets with the according "close recordset" function or whatever it is called, every time you are finished using such a recordset?

Rolf Kalbermatter
My Blog
0 Kudos
Message 4 of 6
(4,118 Views)

Hi Rolf,

I will export a section of code so that I can provide a zip file for your examination. I need a few days to complete. Thanks for your comments. - John

0 Kudos
Message 5 of 6
(4,058 Views)

Hi Rolf,

 

I am using LabVIEW 2015 and I encountered same error. I found no function to close record set. Could you please post the solution for this?

 

 

0 Kudos
Message 6 of 6
(3,886 Views)