|
Re: Resource was re-loaded while it was being unloaded, probably because of unintentional proxy reso [message #213184 is a reply to message #213071] |
Wed, 10 December 2008 14:48 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, rob,
This condition is actually detected by the TransactionalEditingDomain
(from the EMF Transaction component) used by your editor. See the
ResourceSetManager::observe(Resource res, Notification notification)
method. It indicates just what it says: a resource that the editing
domain thinks is in the process of being unloaded has been re-loaded
again. Just as in the movies, resources come out of this kind of
near-death experience twisted and dangerous.
There was a recurring problem in one of the earlier GMF releases (2.0, I
think?) in which some listeners used by a diagram editor would leak when
it was closed, and would process notifications while the resource was
unloading, causing proxy resolution that loads the same resource again.
I think GMF has since fixed that problem, but my memory is fuzzy.
Try putting a breakpoint in the observe method to see what is causing
your resource to load again. This probably results in a memory leak.
HTH,
Christian
rob li wrote:
> Hi,
>
> does anyone know what's the meaning and implication of this warning? I
> got it while deleting model element. It appeared to be originated from
> IDocumentProvider.synchronize.
>
> thanks,
> rob
|
|
|
Powered by
FUDForum. Page generated in 0.05365 seconds