Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-02-18 Thread Jack
Hello Francois, I find that calling pause in OnSessionConnected() is effective. But calling pause in OnClientDataAvailable() does not work. OnClientDataAvailable() keeps getting fired. Any ideas? -- Best regards, Jack Sunday, January 22, 2006, 10:33:21 AM, you wrote: >>> Maybe use Pause/Resume

Re: [twsocket] ICS help system?

2006-02-18 Thread Dod
Hello, Personnaly I like the actual Help and FAQ html documents available from Overbyte's web site, they just need to be improved with some missing methods/properties/events explanations and samples and could be linked into single .CHM Wiki has a big problem : you must be connected t

Re: [twsocket] ICS help system?

2006-02-18 Thread Paul Taylor - Affordable Technology
Hello all, It's good to see the idea of an ICS Help File gaining momentum. I'm indebted to Francois for the number of years that I have used his components and would love to give something back. It will be a long-term project and keeping up the momentum I suspect will be the problem. Personally,

Re: [twsocket] New memory manager

2006-02-18 Thread Francois PIETTE
FastMM is delivered with BDS2006. It is known to be much better. Read this article: http://bdn.borland.com/article/0,1410,33416,00.html Move to a public mailing list or forum if you want to discuss about it because it is out of topic here. -- [EMAIL PROTECTED] http://www.overbyte.be - Origi

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-18 Thread Fastream Technologies
Sorry to bother. It was because of memory fragmentation. I used NexusMM and it works fine now! BTW, I have heard there is one more manager for Borland called FastMM. Does anybody have any experience about which one is better? This may seem OT but it is crucial for server development (especially

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-18 Thread Fastream Technologies
Hello Wilfried, That should not be the problem. You can do as many casting as you like in C++. And you cannot directly convert unsigned int (WPARAM is indeed unsigned int) without first converting to void*. Regards, SZ - Original Message - From: "Wilfried Mestdagh" <[EMAIL PROTECTED]

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-18 Thread Wilfried Mestdagh
Hello SZ, 2 type casts, is this legal ? (TObject*)(void*)msg.wParam --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, February 18, 2006, 15:23, Fastream Technologies wrote: > I found the problem: it is with THTTPConnection descende

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-18 Thread Fastream Technologies
I found the problem: it is with THTTPConnection descendent creation. Now I need to replace FWSocketServer->OnSessionAvailable with my function, which I could but the following code fails: __fastcall THTTPServer::THTTPServer(TApplication *AOwner) : THttpServer(AOwner) { OriginalSessionAv

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-18 Thread Arno Garrels
If you still want to Suspend the thread another option may be to call ThreadDetach before Suspend and ThreadAttach when the thread is resumed again. Something like this: Create it; WSocket1.ThreadDetach; while not Terminated do begin WSocket1.ThreadAttach; WSocket1.Send(So

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-18 Thread Wilfried Mestdagh
Hello, In additions to the reply of Francois: In the rare occasions that I have a hidden window in a thread that has to be reused whole the time, I dont go into suspended but just do nothing. The messagepump I uses, uses GetMessage(), so if no message is post then GetMessage is in a wait state wit

Re: [twsocket] Status of ICS Version 6 and Delphi 2006?

2006-02-18 Thread Francois PIETTE
Both V5 and V6 betas are ready for BDS2006. V5 beta is very stable. It's the main version I use in my own applications. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Hoby Smith" <[EMAIL PROTECTED]> To: Sent: Saturday, February 18, 2006 6:25 AM Subject: [twsocke

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-18 Thread Francois PIETTE
I use multithreading but I never had this problem. I have one difference: my threads are handled by a thread pool class. Basically all suspended threads do not have any hidden windows either by itself or because they use components having a hidden windows. I have separated the communication (ICS