Effacer les filtres
Effacer les filtres

Garabage collection in a program

2 vues (au cours des 30 derniers jours)
Sarah Ghosh
Sarah Ghosh le 21 Juin 2013
I am designing a software which has many files written inside it. It works through a GUI. On providing the input, it works fine. But even on providing a new input, it yields the same output (of the previous input). After waiting for a few minutes, on giving the input, it gives the desired output. I believe, it has to do with the memory not getting cleared up fast. Can anybody help? How does garbage collection work with these problems? Thanks in advance.
P.S. I have a system with a 3 GB RAM
  1 commentaire
David Sanchez
David Sanchez le 21 Juin 2013
To make it clear, your software returns the desired output the first time you run it. When you insert new input, it returns same answer than with first input. After a while, it returns the output corresponding the second input. Did you try to reset your variables in charge of showing values on the GUI at the beginning of your code? It seems that your code is just right, but it takes some time to perform the calculations, during this time, the values shown on the GUI are still the previous values since they have not changed yet, and once it is done with the calculations, it presents the new data.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by