Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » UICallback left active and losing resources...
UICallback left active and losing resources... [message #103950] Tue, 02 September 2008 15:56 Go to next message
Eclipse UserFriend
Originally posted by: akarypid.yahoo.gr

Hi,

My RAP application uses UICallback.activate() to asynchronously update
the browser UI from a server thread, using Display.syncExec(). The
syncExec() runnable ultimately calls UICallback.deactivate() to release
resources before the thread exits.

I noticed that if a user closes the browser window before syncExec() is
called, the syncExec() method never returns and the thread gets stuck in
that call, causing resources to be lost over time.

How can I catch this occurence? For example, is it possible to get a
list of active UICallback ids from the HTTP session object so that I may
abort the thread before calling syncExec()?

Thanks.
UICallback left active and losing resources... [message #107754 is a reply to message #103950] Thu, 02 October 2008 13:57 Go to previous message
Eclipse UserFriend
Originally posted by: fappel.innoopract.com

Hi,

to me this seems as if this could be a bug. As soon as the session times
out all pending runnables for syncExcec should probably interrupted and
adding new ones to the display should throw an exception. Could you file
a bug for this?


Ciao
Frank

-----Ursprüngliche Nachricht-----
Von: Alexandros Karypidis [mailto:akarypid@yahoo.gr]
Bereitgestellt: Dienstag, 2. September 2008 17:57
Bereitgestellt in: eclipse.technology.rap
Unterhaltung: UICallback left active and losing resources...
Betreff: UICallback left active and losing resources...

Hi,

My RAP application uses UICallback.activate() to asynchronously update
the browser UI from a server thread, using Display.syncExec(). The
syncExec() runnable ultimately calls UICallback.deactivate() to release
resources before the thread exits.

I noticed that if a user closes the browser window before syncExec() is
called, the syncExec() method never returns and the thread gets stuck in

that call, causing resources to be lost over time.

How can I catch this occurence? For example, is it possible to get a
list of active UICallback ids from the HTTP session object so that I may

abort the thread before calling syncExec()?

Thanks.
Previous Topic:IDialogConstants - LALELS not static fields
Next Topic:Capabilities / Activities
Goto Forum:
  


Current Time: Thu Apr 25 05:22:09 GMT 2024

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

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

Back to the top