필터 지우기
필터 지우기

Garabage collection in a program

조회 수: 2 (최근 30일)
Sarah Ghosh
Sarah Ghosh 2013년 6월 21일
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
David Sanchez
David Sanchez 2013년 6월 21일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by