Randomly Freezes And Stops Responding?
Mar 13, 2010
My application randomly freezes and stops responding for some reason. A window comes up and says "svhost.exe not responding". My application is big, and I have no idea where to start or how to figure out why it's freezing. I wish I could give you details, but the only thing I can tell you is that my program runs for a random time between 5-20 seconds, then freezes
View 12 Replies
ADVERTISEMENT
Apr 14, 2011
In my application, the user can create a word document from a word template with dynamically added text and data to it. This happens on a backgroundworker so that the application doesn't hang during the process. This all works fine and the word document opens correctly when finished. Now if the user leaves the application to do something else, in most cases when they come back to it, it has frozen. It's still responding/running in task manager but the interface is frozen. In debug mode, it never freezes and so I can't catch the exact moment when the freeze occurs. My backgroundworker is disposed of when complete and I close everything related to the word object.
View 1 Replies
Jun 26, 2009
I have a form with 3 background workers. On the click of a button all three start async. Once they all finish my program stops responding. If I run one at a time I encounter the same error.
'Background worker 1
Disableform(Me)
Try
Dim source As String = _Topsource("[URL]" & gamertag.Text)
Dim statstbl As String = source.Remove(0, source.IndexOf("<div class=""statWrap"">"))
[Code] ......
View 3 Replies
Sep 20, 2009
I recently got a new computer with vista. I was working on a Visual Basic project on my old computer, which had xp, and transferred that project to my new computer. A lot of the time, however, when I try to work on my project on my new computer, an error message pops up and says Visual Basic is not responding and then Visual Basic shuts down. Sometimes if I restart Visual Basic it works ok, but most of the time, the same error message occurs. This doesn't allow me to work on my project when I want to. I have checked to see that my Visual Basic is all up to date and it is. Does this have to do with Vista?
View 4 Replies
Jul 14, 2011
So, I have a DLL , UserControl called MaxBrowser It access the internet through a extended version of the web browser(called ExBrowser) I have found no patterns but at random times if I type or click to fast or load pages with breakpointing the sub that fires a extended version of the Navigate event, which gets the mime type through a HEAD request(in the firing parts) then in the sub that fires, it compares that with a list of mime types henceforce causing download and stopping IE's which works but, it started this problem of mine, i could minimize the problem by not adding a new argument to the event firing instead just adding it to the eventargs, lessened but still, I have this problem, note I'm using VS10 with .NET 2.0[code]...
View 5 Replies
Dec 12, 2009
I'm uploading an image to url... etc. The trouble is my application stops responding for 5-10 seconds while the image is uploading. I want to use multi-threading to stop it doing that but I'm confused with the whole way to use controls with backgroundworker. [code] I guess its the textbox which is causing the problem.
View 1 Replies
Sep 24, 2010
I created a service which monitors a few servers and file shares for exchange. Written in VB.NET 2.The service is installed and running fine(ish) but randomly and without any warning or entries in the event log it stops.Upon noticing it stops (the web front end that it generates stops working) we have to manage ther hosting server to attempt to start it again.If we simply try to restart it, it fails to start with a logon failure.
View 1 Replies
Jun 25, 2009
I'm trying to download a file using ftp and then using a streamreader to read it and write it to a text file. The problem is, when I download the file and read it, either it did not get all the data or it stops writing the data to the local file and doesnt produce any error, it just sits there. I've tried it with many different files from the ftp site and this always happens.
Private Sub Download(ByVal stateURI As String, ByVal userName As String, ByVal pWord As String)
[code].....
View 1 Replies
Sep 26, 2011
I've been working on a program that generates a batch file, then when you press a button, it executes that batch file. There are multiple batch files attached to each item in the list box.
[code]...
The only thing that it does when I press the button, is starts the batch file, then goes to function searchtitle, which executes the batch file again when it finds out it didn't work properly.The button text doesn't change, none of the items are being added to my first list box, and I can't do anything to the window after pressing the button. It constantly opens the batch file every 5 seconds or so.
View 2 Replies
Jan 17, 2011
My VB application is behaving strangley. I have form with fairly large number of controls. I am using case against radio buttons. after curtain number of buttons, it stops responding to more radio buttons.
Then I tried to split controls in to 2 form but now my form.showdialog() too now working properly. It takes new from names but show the old form when running.
View 7 Replies
Aug 24, 2009
I have a datagridview which fetches data from a local SQL server. Now, I have a setting called My.Settings.database_url which indicates the hostname of the SQL server.
Now, the problem is that if the host name is incorrect, instead of getting an error, the app just freezes. So what must I change in order to fix that?[code]...
View 2 Replies
Feb 25, 2010
I can grab if keypressed when form active, i mean not in sub procedures..but my form freezes when Going Delay sub.. its working.. no error but cant use any control or event of form while waiting 10 seconds.. (Form's keypreview property set to true.. )
U can use This if u want to wait applicaiton but u cant doing anything when apication in waiting period..
i think i must to check keystroke in this delay sub.. or am i call Delay sub in wrong time.. i mean i call it form activate event.. should i call it another event ?[code]...
View 2 Replies
Jul 24, 2009
Firstly I want to state this doesn't affect the usability of my program. I made a GUI for an old cmd line program and when running the GUI's form will freeze up and be completely unresponsive. This is annoying since you can't move the form and if you open something over the form then move/close it you get the affect in the attached pic. Attached pic is the program running and the windows calculator being moved around over it.
Is there a way I can have the form stay responsive while the program is running? I don't need for any of the buttons, text boxes, etc to be editable while the program is running.
View 6 Replies
Feb 24, 2011
using a backgroundworker to accomplish database update it takes about 30 minsbut when I minimize the screen or someone remote access my computer it cause freeze screen of my application .Although process workes fine and application is running in background but UI is disable and saying "not responding"
View 2 Replies
Mar 30, 2011
I'm using a grid and the instructions SendKeys.Send("{end}") whenever I write a letter in a cell, so the cursor places at the end of the cell. It works when I write a letter, however when I write the symbol "/" it doesn't work, and when i get this instruction in the debugger, it freezes.
View 1 Replies
Sep 1, 2009
I have created a custom video player in C#. This player has two forms.
1. The Video Player window ( running in primary (UI) thread )
2. The content playing window (running in a secondary thread)
Everything goes fine for nearly 5-6 hours, then the main video player window freeze. So I cannot access any of the buttons (stop, pause ,exit) in the player. But the secondary thread keeps playing the files for even two days continuously (which is the max I tested).
Things I have checked :
1. There is no memory issue, since I dispose the objects I create after playing each file (few min videos). I have checked the process in task manager, where status is running and memory usage as same as it is started.
2. I have used Begin Invoke from secondary thread to update the current playing file in the list box on the main video player window (once the main window freeze, the update is not visible).
3. I have used a timer in the main video player window and tried refreshing form, calling Application.Do Event() for every few minutes, still it gets freeze up after 5-6 hours.
Why the UI window freeze up? Is my architecture for the player is wrong? (I need to do lots of processing in secondary thread for the images and videos to be played, but it is working fine).
View 3 Replies
Jun 4, 2009
I have an application which runs quite good, only once every X minutes it totally freezes, and even when running debug mode from within the VS2005 IDE, Visual studio becomes unresponsive. After pressing the pause-button to see where the app might be stuck, a messagebox saying "Unable to break execution" might pop-up after a minute or two. My app uses some timers, threads, and threadpool calls. So I'm afraid I got a deadlock somewhere, although I can not find it. Is there any way to find out where my app might hang?
Note: I synclocked every routine with a dedicated object, and for queues or arraylists, I even used the synchronized methods to modify them. I don't use recursive routines, so they cannot deadlock themselves. The strange thing (to me) is that all of my app hangs, none of the threads seems to be running, nor background, nor the GUI and even the VS environment.
View 4 Replies
May 9, 2011
i want to have 2 form responding on eachother. for example:
in form 1:
1 textbox and a button
in forum 2
1 label
and when you press the button the label 1 form 2 will change in the text from forum 1. i know the code haves to be something like:
[code]...
View 19 Replies
May 31, 2011
Not responding on FTP upload. Code I'm using
[ode].....
It does uploads everything according to the way I want it to but the problem is.. It becomes not responding when uploading big sized file.
View 4 Replies
Apr 8, 2009
i have nearly finished my game matchmaker now and im stuck on one final thing... this is how the app works...form load -> read line by line from a text file -> query each line(witch is an ip) -> display the data in a line in a listbox... this loops round for each line(ip) in the text file and make a new line in listbox each time... all works just right im very happy... now for the problem im having...
while this loop is running if the query finds an ip that is not online (game server is not up) it just stops and dose nothing atall BUT if i make a seperate query for say 2-3 ips with the ip hard coded so it takes the loop out if an ip is not online it tells me server is offline so is there anyway i could make this do a timeout or something... like if the server dont respond withing 5 seconds it closes the connection to that query and moves on?? my code is below for all of the above..
FORM LOAD
ListBox1.Items.Add("Users" + "|" + "Race Lenength " + " | " + "Track" + " | " + "Realisum" + " | " + "Server IP" + " | " + "Server Name")
[code]....
View 5 Replies
Mar 26, 2011
In a function I have
Do Until PageLoaded() = True
{
Nothing
}
The problem is it freezes up the program and makes it unusable. I fixed it using timers but it makes my program real sloppy and hard to edit.
View 13 Replies
Jun 3, 2011
I'm trying to find a way to make backgroundworker do what's in the webbrowser. There is a time-consuming part in the webbrowserdocumentcompleted event that I want backgroundworker to tackle. Unfortunately, I don't know how to link that part to backgroundworker so that BW can do that job instead of webbrowser.
Here's what in the webbrowserdocumentcompleted event:
Sub WebBrowser1DocumentCompleted(ByVal sender As Object, ByVal e As WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
If CheckBox1.Checked = True Then
[CODE]...
The time consuming part starts from line 2 to line 30. My program freezes whenever webbrowser tries to do this job, so I need BW to do this specific job instead.
View 4 Replies
Jan 12, 2009
I am checking if one of the function keys is pressed in the KeyDown event of a TextBox using the following
If e.KeyCode >= Keys.F1 And e.KeyCode <= Keys.F12 Then
'do something here
End If
This works fine, except when I press F10 the cursor in the textbox freezes (ie. stops blinking) & doesn't free up until another key is pressed. Does Windows use this key for some other functionality that causes this behavior?
View 5 Replies
Jan 29, 2011
I have been working on a game engine for a couple of weeks now and when I finally finish and test it the windows form just freezes, I believe it to be the timer:
<System.Serializable()> Public Class Game
Public Sub New(ByVal NewGameHandle As IntPtr, Optional ByVal NewFramesPerSecond As Integer = 7)
GameHandle = NewGameHandle
GameFramesPerSecond = NewFramesPerSecond
[code].....
View 5 Replies
Sep 20, 2011
I'm currently working on making a database driven app without using SQL and instead using a simplistic web directory to store information.Unfortunately after just beginning I hit a rock wall on creating a login screen. As it works right now, every user has a directory and within that directory is file called "access" which has a password. While I'm aware that's it not secure, that's later to come, but right now I'd just like it to work. But the program uses WebRequest to see whether or not there is a directory under the given username, if there is then the username is considered valid and it moves on to check the password- where I start to have trouble. The password verification uses WebRequest and WebResponse as well, using StreamReader to read the access file. At the moment, the password checker only works once in a single program instance. Otherwise trying to check another login will cause the program to hang or freeze when declaring the WebResponse variable (resp).
This is the password verification code (with URL's removed):
Dim Username As String = My.Settings.usrUsername'The function is in a BackgroundWorker so I use My.Settings to communicate with the UI.
Dim Password As String
Dim usrPassword As String = My.Settings.usrPassword
[code]....
View 3 Replies
Dec 13, 2010
I tried using suggestions from other posts for this and still no resolution. When sending a POST request, at times it will just begin to freeze and stall. I set up my code as follows and now basically if I cannot figure out why it is freezing, then itneeds to timeout, handle the exception and restart the function.
For i As Integer = 0 To searchItems.Count - 1
If uri.Scheme = uri.UriSchemeHttps Then
Dim request As HttpWebRequest = HttpWebRequest.Create(url)
[code].....
View 1 Replies
May 21, 2009
The program starts. When I click the Start button the original form disappears just as I intended, but then it just hangs there. No picture shows up. The CPU heats up and gets louder. It freezes and I sometimes have to CTRL+ALT+DELETE just to exit the program.[code]
View 2 Replies
Mar 16, 2011
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
View 3 Replies
Aug 1, 2009
[code].....
View 15 Replies
Jun 15, 2011
I pass progressbar byref to the processing() function on ClassLibrary. My main form freezes when i run this.How can i prevent my main form by freezing? My Function is always on the class library, so is there any way or any type of approach to this problem. I need the progressbar to be accurate in showing the process.[code]...
View 6 Replies