Memoryleak from memmapfile? Does it need to be deleted?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
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.
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!