BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

POP3 server and databases

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Holger Flick
Guest





PostPosted: Wed Mar 23, 2005 9:27 pm    Post subject: POP3 server and databases Reply with quote



Hi,

why isn't it possible to open a database or search a database when you
do it in the following event of the POP3 Server component:

procedure TdmIndy.srvPOPCheckUser(AThread: TIdContext;
LThread: TIdPOP3ServerContext);

I had the same problem in the proxy server classes. I get exceptions
regarding Threads and DBCursors not available.

--
Holger
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Mar 23, 2005 10:00 pm    Post subject: Re: POP3 server and databases Reply with quote




"Holger Flick" <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote


Quote:
why isn't it possible to open a database or search a database
when you do it in the following event of the POP3 Server component:

Your database code probably isn't thread-safe. Indy servers are
multi-threaded.


Gambit



Back to top
Holger Flick
Guest





PostPosted: Wed Mar 23, 2005 10:24 pm    Post subject: Re: POP3 server and databases Reply with quote



Hi Remy,

the funny thing is that it only happens in the event I listed before.
All other events can extract data from a database. Is there a way to
make it thread safe?

--
Holger

Quote:
Your database code probably isn't thread-safe. Indy servers are
multi-threaded.

Back to top
Andrew Ryazanov
Guest





PostPosted: Wed Mar 23, 2005 10:29 pm    Post subject: Re: POP3 server and databases Reply with quote

"Holger Flick" <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote

Quote:
the funny thing is that it only happens in the event I listed before.
All other events can extract data from a database. Is there a way to
make it thread safe?

What's your database? How do you access it?



Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Mar 23, 2005 10:53 pm    Post subject: Re: POP3 server and databases Reply with quote


"Holger Flick" <rammbaer.xyz (AT) xyz (DOT) gmx.de> wrote


Quote:
the funny thing is that it only happens in the event I listed
before. All other events can extract data from a database.

There is nothing different about that event compared to the other ones.
They are all triggered from the same connection, the same thread.


Gambit



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.