Re: Buffer Size Command Hanging - WeOnlyDo Discussion board

Re: Buffer Size Command Hanging (General questions)

by wodDamir, Wednesday, July 08, 2009, 12:03 (5618 days ago) @ mmorton

Mike,

Ok, let's sum this. Currently the problem that you have is that component doesn't automatically remove vbcrlf from buffer.

What don't you try doing Receive(2) if DataReady property is >0 (after WaitFor) in order to consume another 2 characters (\r\n), but you can ignore those (just not use them).

You can even use Peek method to do same as Receive, but just to check what those 2 characters are, since Peek doesn't remove buffer contents. If they are \r\n then call Receive.

Would that help?

Regards,
Damba


Complete thread: