Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Wilfried Mestdagh
Hi Ann, Of course TDNSQuery is running in TCP mode and MultiThreaded is set to True. Do you execute it in a separate thread context ? Because that can be the reason of access violation. A component create / destroy should be in same thread context. --- Rgds, Wilfried [TeamICS]

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Ja
I dont really understand what do you mean :( They are being created by main form and are being destroyed by timer on main form. I'm not creating separate thread or anything... But maybe its important that first error (after running application) is always invalid pointer operation. It never

[twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Hi everyone, i've an application to write, a client and a server. i've choosen to use the HTTP protocol to enable communication through them. Hence, i'll use the THttpServer as my server front-end. my question is the following : some requests may use some database stuff (SQLite). It shouldn't be

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Bjørnar Nielsen
I have a similar design, but I also have a pointer to the thread in the THttpConnection so that the connection can set a flag on the thread if the connection is dropped before the thread has finished the work and risk using a freed connection. This design could serve several connections/threads

Re: [twsocket] ICS help system?

2006-02-09 Thread Guillaume MAISON
Arno Garrels a écrit : A wiki allows many users to work on the same stuff, that's something totally different. Help-comments in the source files would nullify this approach. Not completely true about nullification :) Let's say there would be a really up-to-date version of the documentation

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Bjørnar Nielsen a écrit : I have a similar design, but I also have a pointer to the thread in the THttpConnection so that the connection can set a flag on the thread if the connection is dropped before the thread has finished the work and risk using a freed connection. True ! i haven't seen

Re: [twsocket] POP3 Client - changing folders on the server

2006-02-09 Thread DZ-Jay
Hello: With POP3, there is no notion of folders or any organization of messages. It is just reads a single file. When you said that your ISP added a spam folder, what do you mean? Did they add this to a WebMail application? If so, this has nothing to do with the POP3 server.

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Dod
Hello Guillaume, Until know what I use to do is to create a worker thread and send jobs (with pointer to socket client object) and then worker send back a message to socket thread with pointer of data to send back to client. So all socket things is done from same thread. Dettaching

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Wilfried Mestdagh
Hello Ann, I dont really understand what do you mean :( Sorry, I try to be more clear next time.. They are being created by main form and are being destroyed by timer on main form. I'm not creating separate thread or anything... OK, then you have to set MultiThreading to False !!! It has

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Dod a écrit : Hello Guillaume, Until know what I use to do is to create a worker thread and send jobs (with pointer to socket client object) and then worker send back a message to socket thread with pointer of data to send back to client. So all socket things is done from same thread.

[twsocket] the 'close' and 'FIN'

2006-02-09 Thread Jeff Peng
hello,lists, I have a pair of Client-Server Socket programs.When the client have finished writing the datas,it should call the 'close()' to close the socket-end for client.And,when the server receive the EOF coming from client,it should call the 'close()' the close socket-end for server.Then the

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Dod a écrit : Ok so you do nearly same as me. But at the end of threaded job I verify the client still exists before sending result. When a session connect I set a SessionID incremental counter in MySocketClient class because I noticed that same socket handle can be re-used by

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Francois Piette
What you're doing is transfering a socket from main thread context to your work thread context. My purpose is not the following. What i mean is executing all the SQL stuff within the thread, and the connection stuff within the main thread. That's what I do with my MidWare threaded

Re: [twsocket] ICS help system?

2006-02-09 Thread Fredrik Larsson
Just MySQL and PHP. And probably the best place for a ICS/Midware wiki is with you (Francois) :) Regards, Fredrik. -Original Message- I have this hosted site that it is currently not being used for *anything*. I will be glad to donate some (most?) of this space to host the ICS

Re: [twsocket] about the socket close

2006-02-09 Thread Francois Piette
To send a FIN to the remote site, you have to call Shutdown, not Close. When the remote acknoledge the end of connection, you get the OnSessionClosed event triggered. Thanks for Francois.Following your words,when the server don't call the 'shutdown()',does it mean that the second FIN

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Dod
Hello Francois, Exactly what I do now, but what reference do you pass to thread ? At beginning I did it with socket.handle (if I remember well by it was long time ago) by I noticed that if during work job the socket is closed and a new connexion come, then it could happend that this

Re: [twsocket] ICS help system?

2006-02-09 Thread DZ-Jay
Fredrik Larsson wrote: Just MySQL and PHP. And probably the best place for a ICS/Midware wiki is with you (Francois) :) I much prefer it were hosted directly at OverByte, but just in case, know that the hosting space I have available includes MySQL/PHP and all the standard features. I

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Francois Piette a écrit : That's what I do with my MidWare threaded TServerObject. You can apply the same logic to the HttpServer component. I have a class which manage a pool of threads. When a request comes in, I get a thread from the pool, adding a new one if necessary. The thread

Re: [twsocket] ICS help system?

2006-02-09 Thread Tibor Csonka
I much prefer it were hosted directly at OverByte, but just in case, know that the hosting space I have available includes MySQL/PHP and all the standard features. I always intended to make a web site, but never found the time, so I have 10GB of space, which I pay for yearly, just wasting