For Programmers: Free Programming Magazines  


Home > Archive > Matlab > December 2005 > Why does my memory drop









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Why does my memory drop
Müller Cristian

2005-12-06, 7:12 pm

Hello,
I have written a program that uses two analoginput objects:one for
sound acquisition and the second to implement a timer callback
function.

The problem is that after around 2 hours the program freezes.I
checked my Windows Task Manager and saw that my Available Physical
Memory is decreasing and the PF Usage is increasing.

Please if you have any solutions or workarounds tell me.Thanks!
Dave

2005-12-06, 7:12 pm

Müller Cristian wrote:
> Hello,
> I have written a program that uses two analoginput objects:one for
> sound acquisition and the second to implement a timer callback
> function.
>
> The problem is that after around 2 hours the program freezes.I
> checked my Windows Task Manager and saw that my Available Physical
> Memory is decreasing and the PF Usage is increasing.
>
> Please if you have any solutions or workarounds tell me.Thanks!


It could be a memory leak in Matlab, but it is far more likely to be
your program is using more and more memory as it runs.

--
Dave K

http://www.southminster-branch-line.org.uk/

Please note my email address changes periodically to avoid spam.
It is always of the form: month-year@domain. Hitting reply will work
for a couple of months only. Later set it manually. The month is
always written in 3 letters (e.g. Jan, not January etc)
Cristian Müller

2005-12-16, 7:10 pm

Okay,it could be my program. Suppose it is,
where are the more likely problems to occur,that would imply a stack
up of memory?
For example:I use many global variables.Is this a problem?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com