Re: [OpenMap Users] threading issues

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 15 Oct 2009 17:05:55 -0400

Hi Michael,

What version of OpenMap are you using, and on what JDK and OS?

- Don

On Oct 6, 2009, at 2:24 PM, Newcomb, Michael-P57487 wrote:

> We have noticed some multi-threading issues with OpenMap,
> specifically deadlock.
>
> One instance we just discovered was with ScaleTextPanel. It is a
> ProjectionListener and when the projection is changed it updates the
> text field with the new scale. The problem is that the projection
> changed event is propogated with a thread via
> ProjectionChangeNotifier. This is not necessarily the problem, but
> ScaleTextPanel should test to see if the current thread calling
> setProjection() is the AWT thread. If it is not, it needs to call
> EventQueue.invokeLater() with a task to update the text fields.
>
> Might be a good idea to check all
> ProjectionListener.projectionChanged() implementations to see if
> they access any components.
>
> Michael
>

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Oct 15 2009 - 17:06:53 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT