Re: [twsocket] WSocketTS won't build in d2

2007-12-06 Thread DZ-Jay
On Dec 6, 2007, at 04:36, Wilfried Mestdagh wrote: > procedure FreeAndNil(var Obj: TObject); > begin > Obj.Free; > Obj := nil; > end; begin if (Obj <> Nil) Then Obj.Free; Obj := Nil; End; > LongWord is a Cardinal This is correct. dZ. -- To uns

Re: [twsocket] WSocketTS won't build in d2

2007-12-06 Thread DZ-Jay
On Dec 6, 2007, at 04:36, Wilfried Mestdagh wrote: > from the top of my head (could be wrong for the TagMsg): > > procedure FreeAndNil(var Obj: TObject); > begin > Obj.Free; > Obj := nil; > end; > > LongWord is a Cardinal > TagMsg is TMessage I don't know in D2, but in D5+ TMessage is

Re: [twsocket] WSocketTS won't build in d2

2007-12-06 Thread Wilfried Mestdagh
Hello Ron, from the top of my head (could be wrong for the TagMsg): procedure FreeAndNil(var Obj: TObject); begin Obj.Free; Obj := nil; end; LongWord is a Cardinal TagMsg is TMessage --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz

[twsocket] WSocketTS won't build in d2

2007-12-05 Thread Ron
Are there some conditional defines missing from this unit? Delphi 2 errors on defines for FreeAndNil, Longword and TagMsg. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.ov

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 7:10 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: >>> WaitForSingleObject would work also but is dang

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: >> WaitForSingleObject would work also but is dangerous. >> - First object is an event handle signaled in the worker thread >> after the Client has called ThreadAttach. >> - Second object is the thread handle so if the thread thread >> terminates a new attempt is made t

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: >>> So do you think this design is not mature? >> >> It is working reliable. Since there may be messages in the queue for >> the windowless client, my only idea was to block the listener thread. >> If there's a smarter/faster way please let us know. > > I do not have

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:41 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: >> My puzzling slightly faded away, not completely. >&

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: > My puzzling slightly faded away, not completely. >>> If not, what's the point in waiting with >>> waitformultiplemessages? >> >> WaitForMultipleOBJECTS, not messages! >> In my opinion the listener thread needs to be blocked while the client >> has no window (until th

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
- Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:16 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: > >> Now, does the end of this function (FOnClientAttac

Re: [twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
My puzzling slightly faded away, not completely. - Original Message - From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Wednesday, March 22, 2006 6:16 PM Subject: Re: [twsocket] WSocketTS > Fastream Technologies wrote: > >&

Re: [twsocket] WSocketTS

2006-03-22 Thread Arno Garrels
Fastream Technologies wrote: > Now, does the end of this function (FOnClientAttached()) run in the worker > thread context? No > If not, what's the point in waiting with > waitformultiplemessages? WaitForMultipleOBJECTS, not messages! In my opinion the listener thread needs to be blocked whil

[twsocket] WSocketTS

2006-03-22 Thread Fastream Technologies
Hello, Assuming this is the official MT implementation for ICS, I am looking at the below code: {* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *} function TWSocketThrdServer.ClientAttachThread( Client: TWSocketThrdClient): TWsClientThread; var WaitRes : Longword;