Page 1 of 1

Buffer Overflow Issue

Posted: Fri Oct 22, 2010 6:35 am
by Ashok
Hello!

I got some garbage displaying on screen when I do many write statements one after another. Problem got resolved when I put some delay after each write statement So It seems some buffer overflow issue as it gets time to display things on screen.

Can Anyone tell me how do I set Hardware Control Flow On on Tft and what is the exact Command to do it.

Thanks
Ashok

Posted: Fri Oct 22, 2010 8:33 am
by Ray
Hardware flow control is on by default, did you enable it on the pc side of things?

Posted: Fri Oct 22, 2010 9:27 am
by Ashok
How do I do that at PC side?
Ray wrote:Hardware flow control is on by default, did you enable it on the pc side of things?

Posted: Fri Oct 22, 2010 9:33 am
by Ray
it depends on what platform and programming language your are working with, hard to tell without more information.

Posted: Fri Oct 22, 2010 9:43 am
by Ashok
Ray wrote:it depends on what platform and programming language your are working with, hard to tell without more information.
I am working In C/C++ using windows XP

Posted: Fri Oct 22, 2010 9:55 am
by Ray
Its a property on the DCB structure. Set the fOutxCtsFlow and fRtsControl fields and you should be good to go.