Re: [OpenMap Users] Applet Memory

From: Rob Ratcliff <rratcliff_at_ticom-geo.com>
Date: Wed, 20 Aug 2008 09:49:45 -0500

Jason,

I posted a patch in the reference I sent you that adds new methods to
shutdown the thread. You can call this method during the stop method of
the applet. It'd be interesting to know if Java Plug-in for JRE 1.5 b10
allows the old thread to run after a reload. I'll send you the updated
files as well in case you don't have access to the patch command. I
think that thread is the only culprit for holding onto memory. You don't
need to clear out all the components and such if you are creating a new
instance OpenMap.

Rob


Bryant, Jason - AES wrote:
> <
> Thanks so much for your response. I am attempting to do as the forum
> posts says and remove all components from the map handler, remove all
> listeners (I am guessing from the mapBean?), and set the mapBean,
> mapHandler, and mapPanel to null when the applet hits the 'destroy'
> method.
>
> I am not finding how to remove the listeners and components though. I
> see that the mapBean has a method called removeAll(), but I don't see
> anything in regards to removing listeners. Also, I see that the
> mapHandler has a removeAll(Collection c) method in it, but there isn't
> documentation about what to pass in. How would I just remove all the
> components?
>
> Sorry for the question, as I should be able to figure out what you
> mean from the API, but I am not seeing the methods to do what you
> suggested. Could you let me know what exactly I need to call to
> remove the components, listeners, and what exactly needs to be set to
> null on 'destroy'?
>
> Thanks so much Rob,
> -Jason



--
[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 Wed Aug 20 2008 - 11:03:00 EDT

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