Coder Social home page Coder Social logo

Comments (4)

labordep avatar labordep commented on May 22, 2024 1

Ok !
You can move your code from the UI to the MolComponentManager, and execute related unit-tests to confirm the patch :-)

from molecule.

labordep avatar labordep commented on May 22, 2024

Thanks Samuel.
Note : that's not a bug, the cleanUp clean only the current session of the ComponentManager (and also itself).
Some objects instances are not yet clean by the garbage collector, due to Smalltalk environement mecanism, I don't know when it's do but probably follwing a garbage cleanup policie. This is a new feature that consist to force the garbaging of stopped components when the ComponentManager>>cleanUp is done (for example).

from molecule.

labordep avatar labordep commented on May 22, 2024

I think this is better to do the garbageCollector by the ComponentManager, I think by the UI (on the menu) this is not the good place. UI need to show us a real state of the Component system and interferate the less (this is just a view). If there is some lost instances we need to clean that by a controller (I suggest the componentmanager) but not by calling only a UI function.

So, what do you think about grab the cleanup part of MolComponentManager>>flashComponents and to do the same thing at the end of the MolComponentManager>>cleanUp ? With that when you clean the system all stopped components will be automatically removed.

from molecule.

Samuel29590 avatar Samuel29590 commented on May 22, 2024

Yes it's probably a better solution to do the garbage collector after cleanUp, than before opening the UI.
It will permit to cleanUp instances that are lost with the others, and that's better !

Your solution is good and better. So, let's go for that ?

from molecule.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.