08-29-2012 05:58 AM
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
Solved! Go to Solution.
08-29-2012 06:06 AM
Here are the attachments
08-29-2012 07:39 AM
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.
08-29-2012 08:16 AM
Thank u smercurio_fc ,
1 . I posted this attachment for presenting my problem in simple way.
2 The same application is running perfectly good in windows xp . So now how can i know whether the pc is windows 7 loaded and proceed for the seperation of
Development system or run time system
08-29-2012 08:44 AM
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".
08-30-2012 12:50 AM
Hello smercurio_fc
I think you did not got my point .
1 Once you built and install the above project in your pc. Once in windows 7 and in xp also . you can find the difference as shown in the below pic
i.e list file is not generating in windows 7 . and this list file is generating in windows xp . This problem is coming when i run my application from start.
08-30-2012 02:00 AM
08-30-2012 03:01 AM
No , i hav,nt read MS recommendations for writing "good" software . can i have the link plase ?
08-30-2012 03:02 AM
08-30-2012 07:21 AM
@Nagaa wrote:
Hello @smercurio_fc
I think you did not got my point .
1 Once you built and install the above project in your pc. Once in windows 7 and in xp also . you can find the difference as shown in the below pic
i.e list file is not generating in windows 7 . and this list file is generating in windows xp . This problem is coming when i run my application from start.
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.