LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DB connection not working in compiled programme

Hi all,

I have a calibration vi working fine in the development mode and run. Yet when i build an exe for it, the exe fails with the following message? any ideas?

 

Error -2146824584 occurred at Conn Get Properties.vi->DB Tools Create Parameterized Query.vi->DB Tools Insert Data.vi->calibration.vi

Possible reason(s):
Exception occured in ADODB.Connection: Operation is not allowed when the object is closed.Help Path is C:\WINDOWS\HELP\ADO270.CHM and context 1240653 in Conn Get Properties.vi->DB Tools Create Parameterized Query.vi->DB Tools Insert Data.vi->calibration.vi

 

I write data away to a database by using a udl file which supplies the connection information to the db tools open connection.vi which works fine when i test the connection - just not sure why the exe fails when the development version works fine

any ideas

 

 

0 Kudos
Message 1 of 3
(2,854 Views)
Hi Mike,

how do you get the path to the db or udl file? Did you strip that extra folder for the exe?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,853 Views)
sorry, yeah my paths got all messed up - moved the exe and it all works fine now - sorry guys
0 Kudos
Message 3 of 3
(2,847 Views)