Noone?
Memoryleak from memmapfile? Does it need to be deleted?
1 view (last 30 days)
Show older comments
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 Comments
Jan
on 25 Mar 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.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!