Re: Problems with TIdNotify

Giganews Newsgroups
Subject: Re: Problems with TIdNotify
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Mon, 5 Feb 2007

"Michal Hruby" <mh…@zoznam.sk> wrote in message
news:6F14F7ABE119E340mh…@zoznam.sk...

> Hello, I'd like to ask if this is correct way to use TIdNotify
class.

That is one way to use it, yes.

> The reason why I'm asking is because sometimes I see two *same*
> lines in the listbox

The only way that can happen is if you are actually sending two
notifications with the same text in them.  The TIdNotify object is
freed as soon as its DoNotify() method exits, so it can run only once.

> while sometimes not even one

The only way that can happen is if the main thread is not processing
new messages properly.

Gambit

Replies

In response to

Problems with TIdNotify posted by Michal Hruby on Tue, 06 Feb 2007