Memoryleak from memmapfile? Does it need to be deleted?

1 visualización (últimos 30 días)
erik hellström
erik hellström el 19 de Mzo. de 2013
Hi I have a function like this:
function comma2point( filespec )
% replaces all occurences of comma (",") with point (".") in a text-file.
% Note that the file is overwritten, which is the price for high speed.
file = memmapfile( filespec, 'writable', true );
comma = uint8(',');
point = uint8('.');
file.Data( transpose( file.Data==comma) ) = point;
end
I get memory problems sometimes and suspect this function. Do i need to delete the memmapfile manually? And in that case, how?
Thanks Erik
  3 comentarios
Jan
Jan el 25 de Mzo. de 2013
You "suspect" this function. Could you please mention the arguments, what "memory problems" exactly mean and why you assume, that it depends on memmapfile? The OS and Matlab versions might be important also.
Walter Roberson
Walter Roberson el 25 de Mzo. de 2013
I'm not sure why you have the transpose() call in there ?

Iniciar sesión para comentar.

Respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by