[Lazarus] synedit.nestedcomments

Michael Van Canneyt michael at freepascal.org
Thu Jul 31 12:15:35 CEST 2008


Hi Roberto, thanks for the assistance...

2008/7/31 Roberto Padovani <padovani.r at gmail.com>:
> Hi,
> this might be irrelevant and I never used the Synapse routines, but I'll try:
> are you stepping also into the actual transmitting routine, character
> by character ?

Placing the breakpoint anywhere prior to the 'end;' of the
'try...finally...end;' block allows the printer to print as expected.

Obviously, the executable can't print.

> I am asking this because it is quite strange to see a device thar
> requires _no_ stop bit, like you configured it:
>
>>    ser.Config(9600,8,'N',0,false,false);

I took the example in the package and tweaked it slightly for my
usage; I' not really sure what parameters I need to pass to the
printer, but 9600 for the baud, seemed reasonable, I suppose I could
use 7 bits because I am sending ASCII strings, N for the parity
because I can't see that parity is required, and the others seemed
okay.

> and by stepping, you might be stopping after each character, so that
> the device state machine can decode the character.
> All the devices I have ever seen in the last decade, either PC devices
> or not, they _need_ exactly 1 stop bit, so an easy shot could be to
> change it to:
>
>>    ser.Config(9600,8,'N',1,false,false);
>
> Let me know if it works!

I'm afraid that it makes no difference...



More information about the Lazarus mailing list