Re: web service call locks up C# winforms application

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am unable to reproduce this at all either in the debugger or not. This
application runs on about 600 client machines and runs 24x7. The freeze
happens on about 1 machine about every other day.

My web service method is called "heartbeat" and all it does is let my server
know that the client is still alive. The client thread that calls the
heartbeat method does nothing else but call the method, then sleep for 5
minutes, then call it again. It's just a simple loop. It doesn't interact
with the main UI thread.

Other than manipulating a GUI control on the main UI thread, which I know is
bad, is there anything else related to WS calls that might freeze the
application?

Thanks for your help,

Colin



"John Saunders [MVP]" wrote:

"chendricks" <chendricks@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:588CECE1-4501-430D-BD75-18B5CADCE65A@xxxxxxxxxxxxxxxx
I have a C# winforms application that makes periodic web service calls in
background thread to my web service server. These calls work fine almost
all
the time but on rare occassions the web service method call will never
return
and the entire application will freeze, even though the call is being made
on
its own background thread, not the main UI thread.

Does anyone know any reason why a particular web service method call would
cause my entire C# application to lock up and become unresponsive? Again,
this call is initiated on a background thread and this thread does not
interact with the main UI thread at all.

Obviously, there _is_ interaction with the UI thread. This interaction may
not be direct, but if there were no such interaction, I don't see how the UI
thread could freeze.

Does this happen when you run in the debugger? If so, can you break
execution when the freeze happens and use the Call Stack to find out where
the UI thread is blocking?
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer



.



Relevant Pages

  • Re: web service call locks up C# winforms application
    ... Any variables, database connections, files or any other resources that you are locking while this task is processing? ... My web service method is called "heartbeat" and all it does is let my server ... is there anything else related to WS calls that might freeze the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Absolute Poker 1st Impressions
    ... > I Like Absolute, the layout an lobby are great, best lobby Ive seen. ... > The client sucks bigtime though. ... Windows also freeze up and so on and it's clearly due to memory ...
    (rec.gambling.poker)
  • Re: BeginInvoke freezes
    ... I assume by your description that you call BeginInvoke on the UI thread. ... | the backup in case that the primary server crash or goes offline. ... | somethings that is random and all the data my client is sending to the ... The BeginInvoke freezing gets my client GUI to freeze. ...
    (microsoft.public.dotnet.framework)
  • Re: Strange performance problem
    ... One way to help debug a hang or freeze is to get a thread dump. ... or kill-3 the client. ... I've a server producing data and a client consuming it (display on ...
    (comp.lang.java.programmer)
  • hanging application winword
    ... I have a client who has problems when using word. ... will freeze her computer when she's using it and when I ... look in event viewer I get 'hanging application ... winword.exe' and fault bucket 86121004 and 21955421. ...
    (microsoft.public.word.application.errors)