VS hangs when browser closed between Begin & EndInvoke

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vishal Gupta

    #1

    VS hangs when browser closed between Begin & EndInvoke

    Hi,

    I am trying to call a function in my web page, asynchronously, to improve
    performance. I am using a function delegate to do that. I have a web page.
    When the user clicks a button, i want to execute this function
    asynchronously and in the meantime move on to other tasks. At the very end,
    i call EndInvoke. Problem is if i disrupt this process by closing the
    browser Visual Studio "freezes" and won't become active until after some
    time.
    It *could* be that i am not giving EndInvoke a chance to be called or to
    finish executing. After a certain amount of time, Visual Studio becomes
    active again. I am hesitant to say this, but it could be that the amount of
    time it takes for VS to become active again, corresponds to the amount of
    time it takes for the session to expire on the server. That's something to
    look into i guess, but regardless, even if there is some sort of a leak or
    blocking problem because EndInvoke couldn't fully execute, Visual Studio
    shouldn't freeze/hang.
    Has anyone else experienced this problem? How does one go about calling
    BeginInvoke in one place/page and EndInvoke in another page without fearing
    that the process might be orphaned and Visual Studio rendered inactive
    should i or other developers chose to close the browser in-between,

    Thanks much, Vishal


Working...