NamedPipeServer splitting data if stream size goes above1024

Jul 17 2015 5:27 AM

I am using NamedPipeClientStream & NamedPipeServerStream in my application to send xml data between two processes.

This works pretty good if xml data size is below 1024bytes. But if it goes above 1024, I receive incomplete data and my routine crashes.

So, is there a way i can give data size capacity upper bound to NamedPipeServerStream & NamedPipeClientStream ?