| View previous topic :: View next topic |
| Author |
Message |
Holger Flick Guest
|
Posted: Wed Mar 23, 2005 9:27 pm Post subject: POP3 server and databases |
|
|
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
|
Posted: Wed Mar 23, 2005 10:00 pm Post subject: Re: POP3 server and databases |
|
|
"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
|
Posted: Wed Mar 23, 2005 10:24 pm Post subject: Re: POP3 server and databases |
|
|
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
|
Posted: Wed Mar 23, 2005 10:29 pm Post subject: Re: POP3 server and databases |
|
|
"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
|
Posted: Wed Mar 23, 2005 10:53 pm Post subject: Re: POP3 server and databases |
|
|
"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 |
|
 |
|