The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Memory leak in file DELETE in R2010b?
Replies: 3   Last Post: Sep 4, 2012 3:43 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Kevin Hung

Posts: 90
Registered: 12/7/04
Re: Memory leak in file DELETE in R2010b?
Posted: Sep 4, 2012 3:43 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Byron,

Thank you very much for posting your work-around to this thread. I know nothing about Java and so I will never be able to find this work-around.

I am just wondering why Mathworks have not fixed this problem.


"Byron" wrote in message <k0rtvm$6kc$>...
> "Kevin" wrote in message <in5he5$641$>...
> > I think the solution is to use DOS to do the delete:
> >
> > dos('del file2.mat');
> >
> > This will be the workaround.
> >
> > Is Java being the problem here?

> I was reading in a few hundred thousand binary files from a frame grabber and deleting them on the fly with delete(?path\fname?). at around 760k files i got java heap space, out of memory error.
> I solved the problem by switching to\fname?).delete(), which maintains same speed but no memory leak issues. I tried system(?del path\fname?) but it was 20x slower.
> Just though i?d share incase anyone else needed a faster workaround than the system cmd.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.