Recorder and replayer memory usage

Mar 2, 2012 at 9:28 AM

Hello !

I first want to thank you for that nice toolbox. 
Really nicely done !

 

I was playing with your record and replay methods  and I noticed some problems when trying to record or replay longer files (duration). Indeed the size of the files becomes rapidly very large using all the ram of the computer and then yielding an OutOfMemoryException.

I do not have a brand new computer which limits the file size to about 1.5GO before yielding an exception. (only 4GO of ram).

I believe you should, form time to time, flush the buffer into the file when recording and and delete part of the array created when replaying data.

 

Thank you again !

 

Simon

 

Coordinator
Mar 2, 2012 at 9:46 AM

I totally agree :D

I will update the code accordingly

Mar 2, 2012 at 9:50 AM

Of course I do understand that this code is brand new and highly subject to modification ! :-)

Just wanted to point out what I have seen during tests :-);  

Merci encore !