Re: [OpenMap Users] From 4.4.2 to 4.5.4: ConcurrentModificationException

From: Don Dietrick <dietrick@bbn.com>
Date: Tue Dec 03 2002 - 23:31:56 EST

Hi Bart,

The OMGraphicList was updated to use a Iterator to go through it's
internal ArrayList. I've started to see some problems like this,
especially when the addition is occurring when the list is also being
rendered() or generated() in a different thread.

I think this can be solved by shallow-cloning the ArrayList and getting
the Iterator from the clone, instead of the original.

- Don

On Monday, December 2, 2002, at 07:29 PM, BJGeraci@aol.com wrote:

> In finally upgrading my OpenMap from 4.4.2 to 4.5.4, I'm now getting
> a "ConcurrentModificationException" when I do a repaint() on a
> layer I created.
>
> Yes: I am adding new entries to the OMGraphicList that I've created
> for this layer.
>
> But the code is the same. Why did 4.4.2 work, but not 4.5.4?
>
> -bj-
> Bart J. Geraci
> bjg@ModelSoftware.com
> BJGeraci@aol.com
>
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Dec 3 23:35:04 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT