LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using "Close FP" by an event, causes the application to stuck sometimes.

 
0 Kudos
Message 1 of 4
(2,591 Views)

I don't think so.

I always use it, never stuck....

Maybe you can be more specific ?



Message Edited by Pnt on 06-23-2008 11:35 AM
0 Kudos
Message 2 of 4
(2,583 Views)

I use a button on the Front Panel to create an event. On the event case, I use the "Close FP".

My application uses Access Data Base, but I never leave a connection opened, or so. Before I have started using the database, the application never got stuck on "Close FP". I believe there is something about using the database, but I can't see the reason.

0 Kudos
Message 3 of 4
(2,559 Views)
Try the following, use a 'Close FP?' filter event and discard the event in the event structure.
in the event structure you will set the status of the FP to hidden, after you have closed your DB refs you can close the FP with the Close FP method

This happens because an application with no front panels open, is terminated and you DB refs might take to long to close, so doing this in the background might help, and give the user a fast experience.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(2,549 Views)