Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO][0.8.0] Problem with OutOfMemory
[CDO][0.8.0] Problem with OutOfMemory [message #613905] Fri, 04 January 2008 15:13
Simon Mc Duff is currently offline Simon Mc DuffFriend
Messages: 596
Registered: July 2009
Senior Member
Hi Eike,

I have a problem with my memory and it is because CDORevision has reference
to real objects... not CDOID. I attached a test case to reproduce the
problem I have.

SalesOrder salesOrder = Model1Factory.eINSTANCE.createSalesOrder();
resource.getContents().add(salesOrder);

transaction.commit();
Customer customer = Model1Factory.eINSTANCE.createCustomer();


salesOrder.setCustomer(customer);
resource.getContents().add(customer);


At this point, CDORevision that represent salesOrder has reference to
customer object.... we do not want that right ? we would like to have
reference to CDOID. Otherwise we are not able to garbage collect that
information.

More than that... both objects doesn't belong to the same transaction. So we
are not able to garbage collect old transaction.
Thank you.






Previous Topic:Create two behaviours to add an element in an EMF editor
Next Topic:[CDO][0.8.0] Concurrency
Goto Forum:
  


Current Time: Tue Oct 20 07:12:26 GMT 2020

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

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

Back to the top