SWYH crashing due to not enough memory, even though I have


#1

Hi,

SWYH crashes after a while due to not having enough memory, but I do have enough. I’m sitting on 16gb ram, I monitor the RAM usage of the application and it doesn’t reach more than 500-600mb.

Here’s the trace:

Detail: System.OutOfMemoryException

vid NAudio.MediaFoundation.MediaFoundationInterop.MFCreateMemoryBuffer(Int32 cbMaxLength, IMFMediaBuffer& ppBuffer)
vid NAudio.MediaFoundation.MediaFoundationTransform.ReadFromSource()
vid NAudio.MediaFoundation.MediaFoundationTransform.Read(Byte[] buffer, Int32 offset, Int32 count)
vid SWYH.Audio.WaveProviderToWaveStream.Read(Byte[] buffer, Int32 offset, Int32 count)
vid SWYH.Audio.WasapiProvider.waveProcessor()
vid System.Threading.ThreadHelper.ThreadStart_Context(Object state)
vid System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
vid System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
vid System.Threading.ThreadHelper.ThreadStart()