[fpc-pascal] Pipe vs Memory buffer.

fredvs fiens at hotmail.com
Fri Jan 27 00:20:06 CET 2017


Hello.

Some news from the front:

var
BufferURL : array of float;

.....

PipeBufferSize := $4000 ; 

CreatePipeHandles(InHandle, OutHandle, PipeBufferSize); 

InPipe := TInputPipeStream.Create(InHandle); 
OutPipe := TOutputPipeStream.Create(OutHandle); 
httpget := TThreadHttpGetter.Create(opus_url,OutPipe); 

setlength(BufferURL, PipeBufferSize);

// This to have the buffer as parameter ???
InPipe.Read(BufferURL,PipeBufferSize);

op_test_memory(BufferURL,PipeBufferSize, Err);

=> Gives as error:  -133 =>
A required header packet was not properly formatted, contained illegal
values, or was missing altogether.

So it seems that the buffer was accepted, only miss the header ?

Difficult to explore when there is no documentation how to do nor examples.

Any idea is highly welcome.

Fe;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Pipe-vs-Memory-buffer-tp5727435p5727453.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list