You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use create and dispose mavlink every 15 seconds if there is no connection to drone.
I think that there is memory leak in class BlockingCircularStream with the mBuffer since he do not get disposed.
public MavLinkAsyncWalker()
{
mProcessStream = new BlockingCircularStream(DefaultCircularBufferSize);
ThreadPool.QueueUserWorkItem(new WaitCallback(PacketProcessingWorker));
}
public class BlockingCircularStream : Stream
{
private byte[] mBuffer;
public BlockingCircularStream(int bufferCapacity)
{
mCapacity = bufferCapacity;
mBuffer = new byte[bufferCapacity];
}
}
The text was updated successfully, but these errors were encountered:
I use create and dispose mavlink every 15 seconds if there is no connection to drone.
I think that there is memory leak in class BlockingCircularStream with the mBuffer since he do not get disposed.
The text was updated successfully, but these errors were encountered: