473,788 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 19 '05 #1
0 1386

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3484
by: Michael | last post by:
Hello Currently I'm migrating an applet from Java 1.1 to 1.3. Targetplattform: Microsoft Internet Explorer 5.x with Sun's Java VM 1.3.1 Problem: The attached applet works fine with the Microsoft VM. But when I use Suns' VM the applet hangs after opening the dialog. And you have to
4
1810
by: Colin Steadman | last post by:
Does anyone have a suggestion how I could debug this problem: 1. Data is collected from database and displayed in a form. 2. User updates data and submits it. 3. Submitted data is compared with old data. 4. SQL is generated for changes and put into an array. 5. SQL in the array is executed line by line. I've copied the code which does the update from a working
5
1669
by: Richard Gutery | last post by:
G'day. Slight problem that has me perplexed. We have an ASP app running on Win2K IIS 5.1, devloped on WinXPpro. Up until the other day, the app worked without problems. Now, the app hangs on an FSO request. I've inlcuded the relevant code below for referrence. Basically, the code will check to see if a dir exists (CALLOUT 1), then
1
2266
by: - | last post by:
i have a problem with a stored procedure. It works when i insert a new record but when i try to reinsert the same record again to test the "IF" statement, the server hangs and lost connection. CREATE PROCEDURE .... ( IN p_id INT, OUT p_status INT )
10
5311
by: feel52 | last post by:
Below you'll find the code i'm working on. It's in a button click routine and hangs after 3 or 4 sometimes 5 loops done, probably in sock.receive(....). Some code was found here( on google i mean) but the amazing( at least for me) is that if i run the program step by step or i cancel the loop and run it by pressing the button again and again it never hangs . I want to have an infinite loop so my socket keeps on listening until i...
2
2330
by: Brad Quinn | last post by:
It appears that IIS hangs the first time two requests are made for same page in quick succession. Although it may very well be something else I'm doing wrong. I have a page (ViewDocument.aspx) that dynamically generates one or more image tags. The source attribute of the image tag is another page (ViewImage.aspx) that simply writes the image data to the response. When I load ViewDocument.aspx for the first time, everything is fine as...
0
218
by: Vishal Gupta | last post by:
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....
1
1515
by: rmgalante | last post by:
Hello, I have a VB.Net component that uses the XslTransform object. I am using the FXSL randomizeList function in my XSL template. When I transform the XML in the VB.Net component, my application hangs. When I load the XML in a browser with a reference to the XSL template, it works fine. Here is my XML:
2
2690
by: Pierre Rouleau | last post by:
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to os.popen3() hanging under Windows in this group before. I stumbled on a case where a piece of code works in some occasions and hangs consistently given different data. It performs exactly the same on 3 different computers running Windows:
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9967
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.