Copy link to clipboard
Copied
Hi,
I am facing this strange issue in my Tablet PC with WIndows XP Tablet edition SP3 having AIR 2.0.3.13070 installer. I have developed a AIR application using AIR SDK 1.5 using Flash CS4 and I have used the following line of code to exit the AIR application when I click a close button:
NativeApplication.nativeApplication.exit();
Although the Air application window gets closed the application process still remains in the Windows Task Manager. This doesnt seem to happen in my desktop with Windows XP Professional with SP3. This issue also doesnt seem to happen in Tablets having AIR 1.5 installer.
I tested this with other AIR applications like Tour De flex also and the same problem occurs there as well.
Has anyone come across this issue or is there a fix available from Adobe to solve this problem.
Thanks in advance and any help on this would be highly appreciated.
Regards
Sampath
Copy link to clipboard
Copied
Hi Sampath,
Thanks for using AIR and reporting this issue to us.
I am trying to reproduce the issue you mentioned on Win7 Uitimate on hp Tablet PC because I have no Tablet PC with Windows XP edition SP3 on hand for now. But I could not reproduce it. I am looking for Tablet PC with Windows XP edition SP3. Do you mind to send me your complete project in case that I was not using proper code to reproduce this issue and which machine model you are using?
Appreciate your help very much!
Regards,
Becky
Copy link to clipboard
Copied
Hi Becky,
I wouldn't be able to share the AIR application as per my company policy.
This problem is not specific to the AIR application I have developed it happens with any AIR application installed in a Tablet PC with Windows XP Tablet Edition SP3.
You can infact even try installing tour de flex to your tablet pc and test this. Keep opening and closing the AIR application and you can see multiple instance of the process left behind in Task manager.
If you want I can send screen shots of the Task Manager which still has the process running even after closing the AIR application.
Regards
Sampath
Copy link to clipboard
Copied
Hi Sampath,
I developed a AIR application using AIR SDK 1.5 using Flash CS4 and I used "NativeApplication.nativeApplication.exit() "to exit the AIR application when click a close button. Then I published as a .AIR file and installed it on Windows XP tablet 2005 on HP TouchSmart tx2 againt the AIR 2.0.3.13070 . But unfortunately I still couldn't reproduce the issue you mentioned. The AIR application process can be removed successfullly after the app window gets closed.
Anything else I missed?
Tourdeflex works well also on my Windows XP tablet. Could you please tell me your computer configuration and your email address?
I will send my project to you. And I wonder if you could try it on your machine to see if the issue can be reproduced?
Would you please send your snapshot to xjchai@adobe.com
Thanks,
Becky
Copy link to clipboard
Copied
Hi Becky,
Thanks for addressing the issue.
I am mailing to your adobe id the screen shots of the process running in task manager even after closing tyhe application.
My Tablet PC configuration is :
System:
Microsoft Windows XP
Tablet PC Edition 2005
Version 2002
Service Pack 3
Inter Core 2 Duo CPU
L9400 @ 1.8 GHz
782 MHz, 1.92 GB of RAM
I have Symantec Endpoint Protection Version 11.0.5002.333 runnning in my Tablet.
I hope the above information helps. If you need more information please reply to this thread.
Regards
Sampath
Copy link to clipboard
Copied
Can anyone from Adobe help us in this problem?
Copy link to clipboard
Copied
Hi,
Sorry, Becky is out for a week so reply is being late. Anyway we can't reproduce your issue so far and don't know how to reproduce yet. I used Flex de Tour as an example app. Can you create a simple sample code that you see your problem in your tablet? (I assume this problem do not happen on all of your computers but if so, please let me know) I would help your problem but unless we reproduce same problem internally, we can't help/solve the issue.
Best Regards,
Hitomi
Copy link to clipboard
Copied
Hi,
Thanks for your reply.
The problem I have raised happens with all AIR applications running in the Tablet PC with the configuration I mentioned previously.
Did you have a chance to run a AIR application in a Tablet PC with the configuration I have mentioned?
Try to open any AIR application and close it. Keep doing this for a couple of times and after 3 or 4 times of doing so you can start to see the Air application process not being removed on exit and they keep adding up for susequent opening and closing.
We also tried the AIR 2.0.4 installer and also disabled Adobe Update Manager. But the problem still exists.
Regards
Sam
Copy link to clipboard
Copied
We are having the same issue, i wonder if we need to clear out eventhandlers on nativeApplication or something before the user is exiting. Anyone can sheed some light on this.
We see the problem on Windows 7 32 bit and some of our customers have reported the problem on other OS'es asswell.
Copy link to clipboard
Copied
I am having the same issue. When my Air 2.0 app closes using stage.nativeWindow.close(); it doesn't always exit as a Windows process. This prevents me from being able to open it again since Win thinks it's already open.
My system is:
Win 7 Ultimate
8GB RAM
Intel Core i7
I have also just duplicated this issue on a:
I'll try it on a Mac Mini next.
Are there some sort of special 'cleanup' functions that I need to call before the close() function activates? Also, what sort of trace action can I call to see what's going on behind the scenes?
Thanks!
Copy link to clipboard
Copied
Hi,
Instead of using nativeWindow.Close(), could you try something like:
public function applicationExit():void { var exitingEvent:Event = new Event(Event.EXITING, false, true); NativeApplication.nativeApplication.dispatchEvent(exitingEvent); if (!exitingEvent.isDefaultPrevented()) { NativeApplication.nativeApplication.exit(); } }
For further details, please see our Application Termination documentation.
Thanks,
Chris
Copy link to clipboard
Copied
Yes, that was exactly the problem. I don't know why I was calling close() instead of exit(). I just figured it out about an hour ago but thanks for the prompt reply/help.
Additionally, I don't know if this is useful information, but I noticed the error I was experiencing was only occurring after I saved a file to the desktop through the AIR app. In other words, the close() function was working fine until I added the WRITE to file functionality. Just throwing that out there in case others experience this and need help troubleshooting.
Copy link to clipboard
Copied
The Air Hang issue happening in the Tablet was due to the Advanced Text Services. So basically to overcome this we need to 1. Right click on the .exe of the Air Application and select Properties. 2. Select "Turn off advanced text services for this program" under the compatibility tab. Note: If you have a shortcut of the app in your desktop please make sure you apply this to the shortcut as well. Was struggling with this issue for months and this breakthrough finding is a relief. Hope this post was useful to other facing this issue. Thanks & Regards Sam
Copy link to clipboard
Copied
Thanks for posting the solution that worked for you!
Chris
Find more inspiration, events, and resources on the new Adobe Community
Explore Now