VMware Horizon Community
pieterheijms
Enthusiast
Enthusiast

Kill two processes after exiting ThinApp

Hello all,

We made a ThinApp that exists about multiple modules, they are loaded in de main application. If I open one specific module and exit the whole application two proccesses hangs. I tried to kill them with the following functions:

- Function OnFirstParentExit, this function doesn't solve our problem, because this function was called to early. That's because our application has different modules and some modules are closed after launching.

- Function OnLastProcessExit, this function isn't called, and therefore the two processes weren't killed. I tested it with msgbox function in VB.

I can use the function OnFirstParentStart, I kill the two processes in the beginning and the application is working correct. But the two processes use a lot of memory, so I want to kill them after closing the application.

Has anyone an idea to solve this problem?

Kind regards,

Pieter Heijms

Jeroen Bosch Hospital

The Netherlands

Reply
0 Kudos
1 Reply
Squidly_Man
VMware Employee
VMware Employee

Use either OnFirstParentExit or OnLastProcessExit to kill the process.

The ThinApp Blog article "[Using IE 7 on Vista as a Virtual Entry Point|http://blogs.vmware.com/thinapp/2008/10/using-ie-7-on-v.html]" has a great example of the kill-process-on-exit procedure.

You can also review other ThinApp Blog scripts to see if they have more what you're looking for.

-Dean F.

-Dean F. https://www.vmware.com/support/pubs/identitymanager-pubs.html
Reply
0 Kudos