Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#34 Problem ApplyDCB

open
nobody
None
5
2011-02-03
2011-02-03
heinzmarti
No

Hi

I found a little problem in this component. The variable "DCB" in ApplyDCB is not initializiced correctly, see code snippet below.

...
begin
// if not connected or inside BeginUpdate/EndUpdate block, do nothing
if FConnected and (FUpdateCount = 0) and
not ((csDesigning in ComponentState) or (csLoading in
ComponentState)) then
begin
{Heinz}GetCommState(FHandle,DCB);{see Windows SDK, DCB Structure}
DCB.DCBlength := SizeOf(TDCB);
DCB.XonLim := FBuffer.InputSize div 4;
DCB.XoffLim := DCB.XonLim;

Just include the Line {Heinz} to prevent from problems.
Thanks a lot.

Heinz

Discussion