Hello Well, I am trying to open a file in a buffer and send this buffer through the phone I am using C# and DirectShow.net I use DirectShow.net in three steps as follows:- IMediaStream TerminalMediaStream = MediaStreamTerminal.QueryInterface(typeof(IMediaStream)) as IMediaStream; //MediaStreamTerminal is the file terminal i am trying to send IStreamSample StreamSample; int ssample = TerminalMediaStream.AllocateSample(0, out StreamSample); IMemoryData SampleMemoryData = (IMemoryData)StreamSample; int s = SampleMemoryData.GetInfo(out BufferSize, P_Buffer, out Actualdata); then I read the file, The problem what I have is P_Buffer is always null, although I have the same code in C++ and it works correectly Can u please tell me What may cause P_Buffer to be always null? Thanks in advance