Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Tue, 29 Jan 2008 11:21:57 -0600,    group: microsoft.public.windows.developer.winfx.indigo        back       


WCF multithreaded service syncronization problem   
I have a console application that generates a thread that serves as a
WCF services.  I also have other threads in the application.  I
syncronize the incoming data to the WCF service via a Queue class the
uses "EventWaitHandle"s.  For some reason the WCF thread is not
correctly doing a "Set" on the EventWaitHandle.  Running the Queue class
by itself (no WCF) works fine and has worked successfully in many
different multi-threaded environments.  The queue class is tread safe
implementation of a multiple reader - multiple writer queue.  The
problem seems to be associated with not have the correct context for
EventWaitHandle when being Set on the WCF thread.  In the intended
environment there may be several identical applications running each
with a unique binding but servicing multiple clients.  I have played
around with 
[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.....)] but it does
not seem to help.  Any clues as to a direction to follow?


-- 
Ireland
date: Tue, 29 Jan 2008 11:21:57 -0600   author:   Ireland

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us