Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to Force stop SWT Browser when it runs infinite java script.
How to Force stop SWT Browser when it runs infinite java script. [message #1795144] Mon, 17 September 2018 00:39
Eclipse UserFriend
1. My eclipse based product has in-app browser that uses SWT Browser.
2. When the browser loads some script that causes infinite loop like while(true){}; then entire SWT application is not responsible.
3. I want to force stop the browser only not entire product when user faces this situation.

I could catch the situation using some timer thread, but there is no way to stop browser from outside of UI thread. (such as dispose, stop).
I could not execute any code through display thread in this situation (async/sync)


Thanks for reading.
Previous Topic:Canvas draw image slow
Next Topic:Stopping Infinite Java Script Loop from SWT Browser
Goto Forum:
  


Current Time: Sun Aug 31 21:08:49 EDT 2025

Powered by FUDForum. Page generated in 0.03988 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top