Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Paul
> The standard Borland service unit runs a perfectly normal application > message pump, and you can drop event drive components like ICS, timers, > etc, onto the form and they just work, and you can post message to the > form handle. How to post the message to what handle. If you create a new se

Re: [twsocket] HTTPCli in multithreaded application

2006-04-12 Thread Albjan
Hello, Just finished a application that creates a HTTPCli object dynamically in threads. Some 100 Pc's needs to be ping (network performance) and then 5 different "httpcli->head" actions on that Pc (wifi proxy testing). The only way it works without memory losses (with BCB6.0) is to use it ASYNC

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Angus Robertson - Magenta Systems Ltd
>From a thread within the server object I've tried to post a message >to the service handle/threadID > procedure TRPPollSvc.WMError(var message: TMessage); //message > WM_ERROR; >PostThreadMessage(MainHandle, WM_ERROR, 0, 0); It should be: PostMessage (RPPollSvc.Handle, WM_ERROR, 0, 0); which

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Paul
Hi Angus, That's was my first impression also, however RPPollSvc.Handle doesn't exist :-( Paul > It should be: > > PostMessage (RPPollSvc.Handle, WM_ERROR, 0, 0); > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocke

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Wilfried Mestdagh
Hello Paul, > That's was my first impression also, however RPPollSvc.Handle doesn't exist > :-( Correct. TService is derrived from TDataModule and has no windows handle. However you can make one with AllocateHWND. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http

Re: [twsocket] HTTPCli in multithreaded application

2006-04-12 Thread Wilfred Owen
Thanks Abjan and Arno for your suggestions. I will be reading those articles. At the moment I have set up a test brace with a thread/message pump, and it is working well. I may have more questions as I try more things out, but it looks good so far. Thanks again for you help - I'm very impressed

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Arno Garrels
Wilfried Mestdagh wrote: > Hello Paul, > >> That's was my first impression also, however RPPollSvc.Handle doesn't >> exist :-( > > Correct. TService is derrived from TDataModule and has no windows > handle. However you can make one with AllocateHWND. That's probably the best way. If you need t

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Paul
> Wilfried Mestdagh wrote: >> Hello Paul, >> >>> That's was my first impression also, however RPPollSvc.Handle doesn't >>> exist :-( >> >> Correct. TService is derrived from TDataModule and has no windows >> handle. However you can make one with AllocateHWND. Thanks Wilfried, got it working wit

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Angus Robertson - Magenta Systems Ltd
> > That's was my first impression also, however RPPollSvc.Handle > > doesn't exist > > :-( > > Correct. TService is derrived from TDataModule and has no windows > handle. However you can make one with AllocateHWND. I guess message problems may have been why I gave up using the Borland service

Re: [twsocket] Postmessage in Service application

2006-04-12 Thread Arno Garrels
Paul wrote: >> Wilfried Mestdagh wrote: >>> Hello Paul, >>> That's was my first impression also, however RPPollSvc.Handle doesn't exist :-( >>> >>> Correct. TService is derrived from TDataModule and has no windows >>> handle. However you can make one with AllocateHWND. > > > Thanks Wi

[twsocket] NOFORMS with ICS v5 TTnCnx class

2006-04-12 Thread Bevan Edwards
Hi all, I was compiling ICS v5 with NOFORMS defined and found that the TTnCnx class is not properly setup for this - it uses WSocket.AllocateHWND and WSocket.DeallocateHWnd. I have corrected it by copying the appropriate code from another component, but thought that Francois my like to fix th

Re: [twsocket] NOFORMS with ICS v5 TTnCnx class

2006-04-12 Thread Francois PIETTE
> I was compiling ICS v5 with NOFORMS defined and found that the TTnCnx > class is not properly setup for this - it uses WSocket.AllocateHWND and > WSocket.DeallocateHWnd. I have corrected it by copying the appropriate > code from another component, but thought that Francois my like to fix > the o

Re: [twsocket] NOFORMS with ICS v5 TTnCnx class

2006-04-12 Thread Bevan Edwards
Hi Francois, I have sent the file directly to your e-mail address, rather than the list. Regards, Bevan Francois PIETTE wrote: >>I was compiling ICS v5 with NOFORMS defined and found that the TTnCnx >>class is not properly setup for this - it uses WSocket.AllocateHWND and >>WSocket.DeallocateH

[twsocket] Compiling ICSBCB100 project for ICS v5

2006-04-12 Thread Bevan Edwards
Hi all, As someone earlier indicated, I built the ICSDel100 project and then turned on "Generate All C++Builder files" option, which seems to have worked alright. However, if I try to build the ICSBCB100 project, it gives me errors about mssing .OBJ files. The first is ICSLOGGER.OBJ, which I

Re: [twsocket] Compiling ICSBCB100 project for ICS v5

2006-04-12 Thread Francois PIETTE
> As someone earlier indicated, I built the ICSDel100 project and then > turned on "Generate All C++Builder files" option, which seems to have > worked alright. > > However, if I try to build the ICSBCB100 project, it gives me errors > about mssing .OBJ files. The first is ICSLOGGER.OBJ, which I f

Re: [twsocket] NOFORMS with ICS v5 TTnCnx class

2006-04-12 Thread Francois PIETTE
> I have sent the file directly to your e-mail address, rather than the > list. Looking at the change you've made, I see that you have not the latest ICS (beta) version. In the latest beta version, Arno Garrels already made those changes ! In the history, it is dated march 11th. -- [EMAIL PROT

Re: [twsocket] Compiling ICSBCB100 project for ICS v5

2006-04-12 Thread Arno Garrels
Bevan Edwards wrote: > Hi all, > > As someone earlier indicated, I built the ICSDel100 project and then > turned on "Generate All C++Builder files" option, which seems to have > worked alright. > > However, if I try to build the ICSBCB100 project, it gives me errors > about mssing .OBJ files. Th

Re: [twsocket] Compiling ICSBCB100 project for ICS v5

2006-04-12 Thread Bevan Edwards
Hi Francois, Francois PIETTE wrote: >>As someone earlier indicated, I built the ICSDel100 project and then >>turned on "Generate All C++Builder files" option, which seems to have >>worked alright. >> >>However, if I try to build the ICSBCB100 project, it gives me errors >>about mssing .OBJ files.

Re: [twsocket] Compiling ICSBCB100 project for ICS v5

2006-04-12 Thread Bevan Edwards
Hi Arno, >>As someone earlier indicated, I built the ICSDel100 project and then >>turned on "Generate All C++Builder files" option, which seems to have >>worked alright. >> >>However, if I try to build the ICSBCB100 project, it gives me errors >>about mssing .OBJ files. The first is ICSLOGGER.OBJ

Re: [twsocket] NOFORMS with ICS v5 TTnCnx class

2006-04-12 Thread Bevan Edwards
Hi Francois, Francois PIETTE wrote: >>I have sent the file directly to your e-mail address, rather than the >>list. > > > Looking at the change you've made, I see that you have not the latest ICS > (beta) version. In the latest beta version, Arno Garrels already made those > changes ! In the