LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW will not close on WinXP Tablet

Doesn't seem to matter how I exit my application (.exe), either by closing the window (via property node), using the 'Quit LabVIEW' vi, or both.  The windows closes but the application still shows up on the taskbar.
 
The OS is Microsoft Windows XP Professional Version 5.1.2600 Service Pack 2 Build 2600 Tablet PC
 
The failure log is:
####
#Date: Fri, Sep 16, 2005 8:26:09 PM
#Desc: Error #26 : "window.cpp", line 11518
LabVIEW version 6.1
For assistance in resolving this problem, please record the preceding information and navigate to www.ni.com/failure, or contact National Instruments.
#RCS:
#OSName: Windows NT
#OSVers: 5.1
#AppName: Newmic
#AppKind: AppLib
0x30277A97 - lvrt WIsAtRootLevel + 77
0x30277CE0 - lvrt WGetStyle + 1D0
0x30273479 - lvrt WGetScreenRect + 779
0x77D48734 - USER32 GetDC + 6D
0x77D48816 - USER32 GetDC + 14F
0x77D4B4C0 - USER32 DefWindowProcW + 184
0x77D4B50C - USER32 DefWindowProcW + 1D0
0x7C90EAE3 - ntdll KiUserCallbackDispatcher + 13
0x77D4D598 - USER32 DefWindowProcA + AA
0x77D4D545 - USER32 DefWindowProcA + 57
0x302734A8 - lvrt WGetScreenRect + 7A8
0x77D48734 - USER32 GetDC + 6D
0x77D48816 - USER32 GetDC + 14F
0x77D4B4C0 - USER32 DefWindowProcW + 184
0x77D4B50C - USER32 DefWindowProcW + 1D0
Message 1 of 8
(3,771 Views)
A similar issue has already been reported here

http://forums.ni.com/ni/board/message?board.id=250&message.id=8576&query.id=119635#M8576

and here

http://forums.ni.com/ni/board/message?board.id=170&message.id=105075&query.id=119637#M105075

AFAIK, there are no advances about this subject. Please let us know if you find any.

Paolo

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 8
(3,759 Views)
This problem is also
 
I found a workaround for this after much trial and error.
 
At the end of a program I used the system exec vi with the command
taskkill /im LabVIEW* /f /t
 
I had to play around with options till I got one that reliably closed down LabVIEW
 
You can find the syntax for the windows taskkill command by searching microsoft site
 
The only other way is the Ctrl Alt Del each time the program finishes and kill the LabVIEW process
 
Beware also of a memory leak issue with windows XP tablet in SP2.
You can find about this on microsoft site also
 
I'm a bit concerned that closing down in this way could exacerbate the memory leak problem.
 
At the moment I wouldn't run LabVIEW on tablets until a service pack release fixes the problems. 
Message 3 of 8
(3,690 Views)

I have a  HP/Compaq Tablet PC  TC 1100

with Microsoft Windows XP

Tablet PC edition  2005

Version 2002

Service pack 2

I have this problem and since we sell an application in 7.1 that I demo on this tablet this is very frustated  that my application can not shut down

 

Do you know any new information about this  matter or any way that you can sense in a labview program that I am actualy running a a tablet pc  and then select the

 

"taskkill /im labview* /f /t command only for that brand of PC in the application

Thanks for your fix that solve to shut down but is not a final solution of course

 

Best Regards

Lars Herrnsdorf

0 Kudos
Message 4 of 8
(3,562 Views)
I have never seen my program run on a WinXP tablet, so I don't know if you can tell by the OS.Version part of the property-node.

Here is what I do that seems to work:
1) taskkill /IM "myprogram.exe" /F /T
2) With a VI server reference to the current top-level .vi (ref created at program start), use a the property-node FP.Open, and send a 'false' to it
3) Call the LabVIEW 'Quit LabVIEW' vi

I have not tried this yet, but I'm confident it would work: use a great utility called pstools <http://www.sysinternals.com/Utilities/PsTools.html>  The part of pstools you need is a program  called pskill.exe, and works great from a command-line.  If needed I can show you how to integrate it into your .exe so you don't have to include the program with your .exe (it becomes part of your .exe).  You may have to pay for a commercial license for pstools......read the EULA.  pskill can kill a process very quickly, and is far better than task manager (you can even kill processes on another PC.

0 Kudos
Message 5 of 8
(3,533 Views)
Hello,
 
The problem that "LabVIEW does not exit properly on Tablet PC with WinXP SP2" is known and was actually addressed for version 8.0.  The tablet OS is not officially supported, which basically means that although a lot of functionality works just fine, LabVIEW was not fully tested on it, so problems like this may exist.
 
Sorry for any inconvenience!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 6 of 8
(3,516 Views)

I have a client that experiment the same problem with a .exe version of my application. He solved the problem this way:

I right clicked on the myprogram.exe program short cut icon on the desktop,  and then put a tick in the Turn off advanced text service for this program (Compatibility tab).

I don't know why this option solves the problem...

 

 

0 Kudos
Message 7 of 8
(3,379 Views)
Hello,
 
That's interesting, and thanks for posting it in the forum!  My understanding was that basically the tablet OS slightly changed the behavior of dll call commonly used in closing applications, but perhaps that is the additional parameter necessary to set to get things to close completely.  It could also solve the problem for a completely different reason - I'm not familiar enough to speculate futher.
 
Thanks again and best regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 8 of 8
(3,366 Views)