[Lazarus] Font.Handle

Juha Manninen (gmail) juha.manninen62 at gmail.com
Thu Oct 7 10:56:24 CEST 2010


Bo Berglund wrote:
> On Thu, 07 Oct 2010 02:14:47 +0000, Mark Morgan Lloyd
> <markMLl.lazarus at telemetry.co.uk> wrote:
> 
>>> If I now close the port with my button and then try to open it again
>>> there is an exception that forces the program to end.
>> Check port ownership, the groups the current user is in, and look at 
>> dmesg output.
>>
> 
> Hmm, what do you mean by that? Could you be more specific?
> The current user is myself, there is no other account created on the
> system and I am an admin.
> And what is "dmesg output"?

I am not going into details because you're using Ubuntu hence Gnome 
while I'm using Debian with KDE. Ubuntu is a derivative of Debian but 
there are differences, and if I tried to give you detailed advice it 
could backfire.

The device /dev/ttyS0 has an associated user and group, e.g.

$ ls -l /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 2010-10-04 09:08 /dev/ttyS0

That shows that in order to do anything useful with the port the program 
needs to either be run as root (considered bad practice), or the current 
user needs to be in the 'dialout' group.

As for the other question,

$ dmesg |tail

followed I suggest by looking at the manpages for dmesg and less. Once 
you've done that continue with e.g.

$ dmesg |less

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list