03-03-2011 06:37 AM
Hello!
Our firm has developed an application using wacom tablet. This was developed on Win XP and with Labview 2010. Our client uses Win Vista OS and is experiencing "The program has stopped working..." message very randomly while using the application. We have traced the problem down to one SubVi, which exports data from the measurement and it appers that the program crashes when it enters some for loop, but not always and the application works without a problem on Win XP and Win 7. What do are your suggestions, what can I change in the subVI?
Solved! Go to Solution.
03-03-2011 07:25 AM
My knee jerk answer is WinVista, since the upgrade of the code is probably more costly than the couple hundred dollars to upgrade Windows. I don't have LabVIEW 2010 on this machine, will try to download to the one that does and look at your code. Do you have the new 2010 service pack installed? That would be one thing to check, it corrects a lot of odd issues, don't remember any that specifically sound like this one though.

03-03-2011 07:46 AM
Ok, I'm on my "Big Iron" machine, but your vi is missing a lot of .ctl's and sub-vi's, so I'm not able to open it.

03-04-2011 01:23 AM
Thanks for the effort. Changing OS was my first idea, but then my boss told me that we supplied the OS with the computer, plus it is filled with other programs so this is not possible. I was hoping that someone had a similar problem and would have figured out the workaround. I will try to add all the controls and sub VIs in the VI.
03-08-2011 02:10 AM - edited 03-08-2011 02:10 AM
Hi HudTuner,
You are doing a lot of string operations and File IO in this subVI, but nothing is visibly a reason for LV crash.
Are you using special characters? Maybe your Customer tries to use special regional characters in a file path or there is a difference with decimal '.' or ',' in the OS which leads you to some crash.
Please, review the code knowing that and have your customer check for special characters and for decimal point mismatches!
Good luck!
Matyas
03-08-2011 02:24 AM - edited 03-08-2011 02:26 AM
Hello HudTuner,
Thank you for sending your code.
I suggest you try to design your code in such a way that you can use Build Text ExpressVI and encapsulate it into SubVI. There is a design rule, when you develop your program, to try to fit the block diagram one screen (without scrolling).
Then not only you will be able to analyze your application easier but it will also be easier to read to everyone else and to find the improper execution under Vista.
Regards, TRSns
03-08-2011 07:19 AM
The problem is solved :smiley very-happy: I used format into string function to write directly to the text file. Thanks for all of the suggestions and effort.I will attach my new VI if anybody will have similar problems in the future.