[OpenMap Users] threading issues

From: Newcomb, Michael-P57487 <Michael.Newcomb_at_gdc4s.com>
Date: Tue, 6 Oct 2009 14:24:07 -0400

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 Tue Oct 06 2009 - 14:36:36 EDT

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