Menu

exe still running after app exit on TabletPC

Help
2008-03-13
2013-06-12
  • Scott Presley

    Scott Presley - 2008-03-13

    I've got an application that my customers use on both their desktops (XP) and their tablets (XP TabletPC Edition 2005)

    Under normal XP, launching the application adds a process named "myapp.exe" to the windows process list.  As soon as my app appears, this process goes away.

    Under XP TabletPC Ed., launching the application adds a process named "myapp.exe" into the windows process list.  This process never goes away, even after I leave the application.  Once exited, I can launch the application again, and now a second process named "myapp.exe" is added to the windows process list. 

    I initially found this because a customer was trying to uninstall and the uninstall app said that the directory containing the "myapp.exe" file was still in use.  I had the customer look in his process list and he found 7 "myapp.exe" processes running!

    I have tried generating the exe with both the "keep alive" set to true and false, both times I'm seeing this problem.

    I've tested and verified that this is happening on several types of machines running XP TabletPC Edition:

    1. Toshiba Laptop
    2. Panosonic Toughbook
    3. Hammerhead DRS Hammerhead Extreme

    Thanks in advance for your help...

     
    • Grzegorz Kowal

      Grzegorz Kowal - 2008-03-15

      I'm guessing that the Windows API might slightly differ on the tablet, I'd have to check that.

      Are you using a splash screen, if so how is it configured? Are you using System.Exit to close your app ?

      Grzegorz

       
      • NavajoCode

        NavajoCode - 2008-10-25

        I'm facing the same problem with XP Tablet PC Edition on HP-Tablets.
        Even without a splash screen and proper termination-code (System.exit(0)) the process is still showing up in the Task-Manager after closing the app.
        Can I do anything about that?

        Great app! Thx in advance, NavajoCode

         
        • Grzegorz Kowal

          Grzegorz Kowal - 2008-11-11

          Hi,

          Download the newest version and run it with the --l4j-debug option and see if there is a "Exit code:" entry in the log.

          Grzegorz

           
    • Scott Presley

      Scott Presley - 2008-03-17

      Thanks for the reply...

      We are using a splash screen.  Below is our config xml.  In our application we're actually using Runtime.getRuntime().halt( 0 );

      =========================================
      - <launch4jConfig>
        <dontWrapJar>true</dontWrapJar>
        <headerType>gui</headerType>
        <jar />
        <outfile>C:\my-app, v2.0.exe</outfile>
        <errTitle />
        <cmdLine />
        <chdir />
        <priority>normal</priority>
        <downloadUrl>http://java.com/download</downloadUrl>
        <supportUrl />
        <customProcName>false</customProcName>
        <stayAlive>false</stayAlive>
        <icon>C:\icon.ico</icon>
      - <classPath>
        <mainClass>com.xxx.xxx.xxx.MyApplication</mainClass>
        <cp>C:\Program Files\xxx\client\system\lib\*.*</cp>
        </classPath>
      - <jre>
        <path>..\jre\&lt;/path>
        <minVersion>1.6.0</minVersion>
        <maxVersion />
        <dontUsePrivateJres>false</dontUsePrivateJres>
        <initialHeapSize>512</initialHeapSize>
        <maxHeapSize>512</maxHeapSize>
        <opt>-verbose</opt>
        </jre>
      - <splash>
        <file>C:\logo.bmp</file>
        <waitForWindow>true</waitForWindow>
        <timeout>60</timeout>
        <timeoutErr>true</timeoutErr>
        </splash>
        </launch4jConfig>

       
  • Christophe

    Christophe - 2011-02-28

    Hi,

    I'm working with launch4j 3.0.2 and I have the same issue on an "XP Tablet PC"

    Does any one have a fix for this issue?

    Thanks

     
  • Christophe

    Christophe - 2011-03-02

    Hi,

    I launch my application with -l4j-debug option. And i saw that :

    Exit code:             0

    So, does any one have an idea????

    Thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.