09-20-2013 03:35 AM
@SKY_THE_CHALLENGER_OF_CHANGE wrote:
Dear Ranjit,
The apended path as well as the path in error msg are same. And I have checked my database file is also located at the same place.
I think it is an issue related to 32-bit and 64-bit. My developement system is a 32-bit machine where as the run time system is a 64-bit machine
And as your database is stored in the Program Files folder, you are runing your program with admin rights ?
Remember that on Windows 7, most programs are NOT allowed to change files stored in the Program Files folder.
Microsoft recomend that you store program data files in the ProgramData folder on Windows 7.
LabVIEW has inbuild functions to get the path for the ProgramData folder, both on Windows 7 and XP.
You can make your installer place your database in the ProgramData folder automatic when intalling your program.
09-20-2013 10:08 PM
Dear Ranjit,
Frist of all thanks for sharing the links and other information.
Regarding the VI you can consider the same vi which you sent me for UDL EXAMPLE I have tried that also;even it doesnt work on win 7. (my vi will need hardware so its difficult to test it)
ProgramData folder can work, because I can read the database but cannot write.
09-20-2013 10:11 PM
when you marked solution then you were oon same PC? I am using udl file to write data to DB from last 3yrs. There must be some problem with VI only.. Although its same please share it.
09-28-2013 12:32 AM
can this be the problem?
09-28-2013 02:07 AM
@dkfire wrote:
And as your database is stored in the Program Files folder, you are runing your program with admin rights ?
Remember that on Windows 7, most programs are NOT allowed to change files stored in the Program Files folder.
Microsoft recomend that you store program data files in the ProgramData folder on Windows 7.
LabVIEW has inbuild functions to get the path for the ProgramData folder, both on Windows 7 and XP.
You can make your installer place your database in the ProgramData folder automatic when intalling your program.
I can do with ProgramData folder buy what is the problem during creation of installer file. You need to provide different path for that.
09-28-2013 02:08 AM
@SKY_THE_CHALLENGER_OF_CHANGE wrote:
can this be the problem?
It was working before also right?