By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

VS hangs when browser closed between Begin & EndInvoke

P: n/a
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
Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.