On 01/21/2016 11:38 AM, Mark Morgan Lloyd wrote:

That of course is a significant issue.

I don't see what could prevent this from working.

The simple method would be to create a new buffer for the data to be transferred to the main thread and copy the data already received in a "static buffer" there.

If you want to avoid copying you could transfer the data in the receive buffer (which later would be freed) and allocate a new receive buffer for the next receive.

I don't understand  the "OS" issue, that you speak of .

-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to