Re: threading and exception problems in tidSMTPserver

Giganews Newsgroups
Subject: Re: threading and exception problems in tidSMTPserver
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Thu, 5 May 2005

"nd" <no@spam.com> wrote in message news:9CC82FFDCEC8E240no@spam.com...

>      obj:=tObject(trlist.Items[trIx]);

Have you tried casting to TIdSMTPServerContext rather than to TObject?

>      { do thing with obj } ***** exceptions here  *****

What kind of exceptions exactly?  Please be more specific.

> I was wondering if the index variable (trIx) was getting out of
> bounds despite the locklist....

If it were, you would be getting an EIndexOutOfBounds exception when
accessing the Items[] property.

Gambit

Replies

In response to

threading and exception problems in tidSMTPserver posted by nd on Thu, 28 Apr 2005