LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Program not working with windows 7

Solved!
Go to solution

I developed a small application and builted in windows 7 2011 version.  

 

When i runned this app from start menu, this application is not running correctly in windows 7. but when i installed this application in another pc which has windows xp this is working perfectly . 

 

For the below attached project, In windows 7 this application is not generating the supporting file "list " ,  when i runned from start menu. But When i runned the application where it is builted in windows 7 also this is working .

 

Help me in solving this problem

0 Kudos
Message 1 of 12
(3,039 Views)

Here are the attachments

0 Kudos
Message 2 of 12
(3,035 Views)

First, read this: http://digital.ni.com/public.nsf/allkb/FD7DE8BC8FFC256C862565F4006BE363

 

Second, there are specific permissions differences between Windows 7 and Windows XP. Windows 7 will not allow you to write to certain directories unless you are running as an administrator.

 

Third, what is your VI supposed to do? It seems to be to two completely different VIs merged into one.

0 Kudos
Message 3 of 12
(3,020 Views)

Thank u 

 

 

0 Kudos
Message 4 of 12
(3,011 Views)

Your issue has nothing to do with Windows 7. Your issue has to do with the fact that you use "open or create" for the Open dialog. If the file already exists, then you will get an error. You need to use "replace or create".

0 Kudos
Message 5 of 12
(3,007 Views)

Hello 

 

 

 

Download All
0 Kudos
Message 6 of 12
(2,980 Views)
Solution
Accepted by topic author Nagaa

Hi Nagaa,

 

did you read MS recommendations for writing "good" software? NEVER write data files in the program directory!

Win7 might block this even when your app has admin priviledges...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 12
(2,965 Views)

No , i hav,nt read MS recommendations for writing "good" software . can i have the link plase ?

0 Kudos
Message 8 of 12
(2,958 Views)

Hi Nagaa,

 

dig into MSDN on your own...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(2,956 Views)

@Nagaa wrote:

Hello @smercurio_fc

 

 

 


And you did not get my point. Your program will STILL create an error even in Windows XP if you run it a second time giving it the same directory name. The fact that you are writing to the Program Files directory is a Windows-7 specific issue, as I pointed out in my first response.

0 Kudos
Message 10 of 12
(2,934 Views)