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
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
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
- 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
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
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
- 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.
>&
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
- 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
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:
>
>&
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
11 matches
Mail list logo