[lazarus] Another one bug add: TMemo & TListBox I/O errors?
Baeseman, Cliff
Cliff.Baeseman at greenheck.com
Wed Apr 26 10:06:44 EDT 2000
That is very possible a call to application.processmessages might be a good
idea.
The gui may look frozen if you are in some large process without calling it.
Cliff
-----Original Message-----
From: Bogdan M.Maryniuck [mailto:mbm at diprintas.lt]
Sent: Wednesday, April 26, 2000 6:01 PM
To: lazarus at miraclec.com
Subject: Re: [lazarus] Another one bug add: TMemo & TListBox I/O errors?
Ok, Marc.
Here is detailed answer:
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;
Here is all Ok -- I see my line there.
When I try to (just for fun):
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;
All RIGHT. And all OK.
But:
while not eof(sometextfile) do
begin
readln(sometextfile,somestring);
listbox.items.add(somestring);
end;
It's freezing a system. Do I need to add:
application.processmessages
into the LOOP? Or what?.. Please help.
----- Original Message -----
From: Marc Weustink <Marc.Weustink at cuperus.nl>
To: <lazarus at miraclec.com>
Sent: 26 àïðåëÿ 2000 ã. 5:47
Subject: RE: [lazarus] Another one bug add: TMemo & TListBox I/O errors?
> + From: Bogdan M.Maryniuck [mailto:mbm at diprintas.lt]
> +
> + Yes, it's work. Question is HOW.
> + For example:
> +
> + while not eof(sometextfile) do
> + begin
> + readln(sometextfile,someasciistring);
> + listbox.items.add(someasciistring);
> + end;
> +
> + ...hanging a system and _NOT_ load a lines into a listbox. :-(
>
> How many lines are you trying to add? Have you tried one ?
>
> Marc
>
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
_________________________________________________________________
To unsubscribe: mail lazarus-request at miraclec.com with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
More information about the Lazarus
mailing list