Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Resource was re-loaded while it was being unloaded, probably because of unintentional proxy resoluti
Resource was re-loaded while it was being unloaded, probably because of unintentional proxy resoluti [message #213071] Wed, 10 December 2008 03:33 Go to next message
rob li is currently offline rob liFriend
Messages: 7
Registered: July 2009
Junior Member
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
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:model updating not reflected in editor
Next Topic:How to draw compartments figures over connections.
Goto Forum:
  


Current Time: Fri Apr 26 14:16:54 GMT 2024

Powered by FUDForum. Page generated in 0.05365 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top