That's exactly what I was thinking about after I wrote my first
message.  I could do this in the Commands that load / unload the data.
I have to check there if the data is already loaded anyway, so that
could be the right place to track which window is using the data.

--- In [email protected], "jer_ela" <[EMAIL PROTECTED]> wrote:
>
> I assume that when a new window is opened you have an event that
> causes the data it needs to be loaded into the model locator.  And you
> will probably have a check to see if the data is already loaded so you
>  don't load it twice.  
> 
> Just keep track in the model of how many users there are for that
> data.  When windows close or otherwise no longer need the data have
> them send an event that causes the counter to decrement.  When it gets
> to 0 you can unload the data.

Reply via email to