a bit more on this...

ReceiveFrom seems to block and enter a high cpu load state if called 
repeatly. I have a server that broadcasts regulary (200 msec rate). The 
client application uses the OnDataAvailable event to call ReceiveFrom. This 
application hangs in the ReceiveFrom function if it gets regular 
OnDataAvailable events. If ReceiveFrom is replaced with Receive the fault 
clears.

I have solved my problem by other means, this is just for info only

-rvg



----- Original Message ----- 
From: "Robert Van Gemert" <[EMAIL PROTECTED]>
To: "ICS support mailing" <twsocket@elists.org>
Sent: Saturday, March 04, 2006 7:55 PM
Subject: Re: [twsocket] broadcast sender address


> Wilfried ,
>
> Thanks, I am calling ReceiveFrom within OnDataAvailable. When I use 
> ReceiveFrom my application takes 90% of the cpu and remains in this state. 
> If i use Receive my aplication works correctly. I presume ReceiveFrom 
> should not block but in my case it does.
>
> -rvg
>
>
> ----- Original Message ----- 
> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
> To: "ICS support mailing" <twsocket@elists.org>
> Sent: Saturday, March 04, 2006 6:58 PM
> Subject: Re: [twsocket] broadcast sender address
>
>
>> Hello Robert,
>>
>>> RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen).
>>> This function hangs the pc.
>>
>> You do call it from inside OnDataAvailable event ?
>>
>> --- Rgds, Wilfried [TeamICS]
>> http://www.overbyte.be/eng/overbyte/teamics.html
>> http://www.mestdagh.biz
>>
>> -- 
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be
> 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to