04-03-2017 04:15 PM
It's quite a sophisticated file, however, essentially while playing a wav file all of a sudden it freezes, not sure what is going on....
attaching the snippets of the init state and the play state...There is not sign of failure, all of a sudden it just stops executing...
The length of the file is 58 minutes, essentially I am reading into a buffer from the start position incrementing it by 2000, until either the buffer ends of the time expires (1 hr), at this point I clear everything and load another smaller reference file.
Does anyone have any idea what could be causing it? Am I somehow writing too fast to the buffer?
Solved! Go to Solution.
04-05-2017 09:08 AM
I think it's overflowing the buffer, I went back to an internal sound card (was using external nu force model) There's a crazy memory leak going on, all my references are being closed, I am opening and closing the file every time I write to it to store data....Not sure what else can be done.
04-11-2017 07:47 AM
Found a subvi opening and not closing the .ini file. After the fix - no more leak. The actual NI Sound Generating example is not causing any leaks, which is great.