02-05-2010 09:45 AM
Hello All,
Attached is a sample LV2009 code which crashes everytime I run this VI. It has a while loop in which a single process shared variable is read and some array operations performed. It seems to be related to the combination of shared variable and the delete array. Anyone seen this before in LV2009?
Thanks
Solved! Go to Solution.
02-08-2010 10:45 AM
Madan,
This project and VI definitely crashes LabVIEW 2009 (I can replicate it on my computer). If you recreate the project, variable, and VI in a new project though you don't get the crash and you're able to run the VI as is. This tells me that something is corrupted with this particular project or VI file. It's hard to say what is the cause (software does crazy things sometimes) but something has put one of them (project or VI) into a bad state. I suggest trying the steps of creating this again in a new project and try it again. Post back your results so that the community is better able to help out. Thanks!
02-09-2010 09:13 AM
Madan,
Did a new project, variable, and VI still crash LabVIEW or was it ok?
02-09-2010 09:44 AM
Grant,
I created a new project, variable library and VI. It still crashes like my first project.
Thanks,
Madan02-09-2010 09:53 AM
Madan,
Then it might be your software. I was able to create the exact same project, variable, and VI and it function properly but your project crashed my LabVIEW. Does every project and VI crash your LabVIEW? You might want to consider an uninstall/reinstall of LabVIEW. I know it's painful (believe me I have to do it once a month because I'm always working with hard customer issues) but if the same functionality is crashing yours but it works on mine then that would point to something with your system.
02-09-2010 11:35 AM - edited 02-09-2010 11:37 AM
Grant,
I already did a clean reinstall once as explained in this link below
http://forums.ni.com/ni/board/message?message.uid=970579#U970579
1) If you create an indicator for the shared variable, it does not crash anymore.
2) If you disable the delete from array and just read the shared variable it does not crash as well
I have tried this in atleast 3 different LabVIEW installations (different desktops) now and seen it crash consistently.
All my other LabVIEW projects/VIs are running ok.
Thanks
Madan
02-09-2010 06:07 PM
Madan,
Here is the exact project folder and everything that you attached. I can open and run this without crashing my computer. Can you open and run the VI on yours?
02-10-2010 12:36 PM
Grant,
I downloaded your project and able to run without crashing.
Just to be sure, I loaded my old project to make sure it crashes and it did crash like before.
Did you make any changes or recompile the project to fix it?
Thanks,
Madan
02-10-2010 01:40 PM
Madan,
I just opened the project you attached and ran the VI and then zipped it up again. I didn't explicitly mass compile the project but it did compile it to my system when I ran it and saved it when closing. You said that you tried this on 3 different computers that have LabVIEW, did all three of those computers use the same DVD/CD to install LabVIEW from? Have you installed any LabVIEW patches (when you start up LabVIEW the splash screen will say LabVIEW2009f1 or f2 or f3 if you have)? Could you post an image of the NI Software you have installed (Open up Measurement and Automation Explorer and expand the Software tree underneath My System)?
02-10-2010 02:22 PM
Grant,
All the LV2009 installations were from the same set of DVDs. I installed these patches
1) LabVIEW 2009 F3 Patch
2) LabVIEW Realtime module 2009 F2 patch
Please see attached the image of NI Software installed on the PC
Madan