VS 2005 - IDE Unresponsive And APP Freezes

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


ADVERTISEMENT

VS 2005 - App Freezes When MySQL Connector Executes Query

May 25, 2009

I am am currently developing an application using Visual Basic 2005 and I am also using the .NET MySQL Connector. I have noticed that when the MySQL Connector executes a query the application freezes for a bit so I was wondering if it is possible to create another application with textboxes, labels, etc, that will be hidden and will execute these queries, but the main application will be able to read and modify data on the hidden application so that it won't freeze.

View 18 Replies

Forms :: New Form Becomes Unresponsive?

Nov 3, 2010

I've recently just started looking into TCP sockets for Server-Client communications in VB.Net(VS2010); which I have working fine whilst on a single form. However, when I try to load another form it calls the form_load part and runs that part, but then appears as if it's in an endless loop on the original form because the mouse turns to time out whilst on the new form. Client side Login form(works fine and is responsive)

Public Class Login
Private client As System.Net.Sockets.TcpClient
Private Const BYTES_TO_READ As Integer = 255[code]....

Tried breakpointing to find out where the loop appears to be and I think its in the doRead sub.

View 3 Replies

Unresponsive Dialog Window?

Jan 26, 2009

I'm making an Install Manager and when you hit the install button a dialog is suppoed to come up saying that your installing and theres no way to track your installation and some other stuff but it only pops up after all the software is downloaded and while its installing. The finish button is supposed to show up when everything is completed that they checked off. Instead, the dialog pops up after it finishes downloading and while it's installing. It also shows the finish button before it's finished installing. Heres the necessary code

Dialog1.vb
Imports System.Windows.Forms
Public Class Package_Installation

[code].....

View 12 Replies

When Used Threading Application Became Unresponsive

Jul 18, 2012

i have a vb.net application that plots 16 plots immediately, the plots data are realtime. the 16 plots must draw the points at the time they receive them (must be no delay), to do that

1- i made a timer with ticks at 50 ms.

2- at each timer tick call the plotting function 16 times (with a graph name as parameter)like that: [code] it made a big delay, when i used threading the application became unresponsive.

View 5 Replies

.net - Using Task For Async Operation But UI Is Still Unresponsive

Jun 14, 2012

I have a WPF application in which i have to do a long running task (basically reading from network). Just to give you a snapshot I am doing the following thing on button click

Dim t As Task(Of String) = Task.Factory.StartNew(Of String)(Function()
'Thread.sleep is simulating long running task that will make UI unresponsive
Thread.Sleep(10000)

[Code].....

I cannot use Event based async methodology because the reading API actually exist in a dll which i refer in my program, that contains a function Public function ReadFromNetwork() as String. This API is making an async call to network to read a long string and return to UI. So, in short i m doing TextBlock1.Text = ExternalDll.ReadFromNetwork().

but the problem is that even if i use Task asynchrony, the UI is still unresponsive.

View 3 Replies

Avicap32 Unresponsive When Recording A Video?

Oct 17, 2010

when i record a video with avicap32 all become unresponsive what is the best way to procede?

how do u force avicap32 to record on a separated thread

View 1 Replies

Forms :: Application Unresponsive After Moving Window (when Running)?

Dec 8, 2009

I have an application (written in VB.net 2008) which reads a text file. Parses the record and uses the second field (a UK postcode) to match an Access database (SQL - Select * from Table1 ......), then writes a text file back out with the original input postcode plus several fields taken from the access database.

I have 3 counts happening during the process, records read, postcodes matched and postcodes not matched. I move these values to labels on the form, then every 50 records read, I refresh the form (me.refresh) to update the labels (showing the end user where the process is upto).When running, if I drag the window around the screen, or minimize then maximize, or click off the window to another window, the application seems to freeze and the counter labels do not refresh.

View 3 Replies

Program Becoming Unresponsive Whilst Running Long Code

Jan 31, 2011

I'm currently trying to write a football simulator but am having issues with the computer becoming unresponsive. There are long lines of code (several thousand lines) that are executed over and over as one run of the code is equivalent to one second of game time. While the game is setup to be like Football Manager where you watch the game live, there will also be cases where the entire game is simulated without you watching. When doing a full sim of a game, I just have a loop which executes the code block 7200 times (games go for two hour roughly).

At the moment this takes about a minute but even when I get it down to the desired 5-10 seconds or so, I dislike the fact that the computer becomes completely unresponsive during this time. In a round there are 9 games and you'll be simulating without watching 8 of them. You're looking at 1-2 minutes of simulation time or possibly more. I can't have a loading screen that long! How can I program the game so it runs these simulations yet the game still remains responsive? It'd be fine if the user could muck around in the menus and stuff while the simulation runs.

View 10 Replies

Thread.Sleep Unresponsive - Allow People To Have Multiple ITunes Libraries On One Computer

Jul 20, 2010

The coding that I have a problem with might make people think that I am creating some malware or something stupid. So the project I am doing is associated with iTunes. iTunes allows people to have one library. There is another way, but it is very confusing to some people, and very unreliable. So my project is that I will allow people to have multiple iTunes libraries on one computer. So the problem is this. In order to have an option to choose your library, I gotta make sure that iTunes is not running. So this is the script:

Code:
Private Sub CheckAndCloseiTunes()
retry:
'Custom class that includes the function to safely close iTunes

[CODE]...

So when I use the Threading.Thread.Sleep(2000) code, the form becomes unresponsive.

View 1 Replies

VS 2008 - Use The Threading.Thread.Sleep(2000) Code The Form Becomes Unresponsive

Jul 20, 2010

The coding that I have a problem with might make people think that I am creating some malware. So the project I am doing is associated with iTunes. iTunes allows people to have one library. There is another way, but it is very confusing to some people, and very unreliable. So my project is that I will allow people to have multiple iTunes libraries on one computer. So the problem is this. In order to have an option to choose your library, I gotta make sure that iTunes is not running.

So this is the script:

Private Sub CheckAndCloseiTunes()
retry:
'Custom class that includes the function to safely close iTunes
Dim Processes As Process() = Process.GetProcessesByName("iTunes")

[CODE]...

So when I use the Threading.Thread.Sleep(2000) code, the form becomes unresponsive.

View 4 Replies

Forms :: Open A Child Form - Main Form Is Unresponsive?

Apr 20, 2011

When I open my child form,

frm_Analogs.ShowDialog()

It opens up the new form, but now I can not interact with my main form. It will not accept focus or allow me to interact with it.

Do I need to change the form type?

View 4 Replies

App Freezes When Should Give Error

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

Form Freezes When Going Delay Sub

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

Form Freezes When Running

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

Screen Freezes With Backgroundworker?

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

Sendkeys Freezes The Computer?

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

UI Windows Form Freezes Up?

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

Freezes Up The Program And Makes It Unusable?

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

BackgroundWorker And WebBrowser - Program Freezes ?

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

Cursor In Textbox Freezes On Pressing F10?

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

Custom Game Engine Freezes?

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

HttpWebRequest.GetResponse And HttpWebResponse Freezes?

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

Httpwebresponse = Request.getresponse Freezes?

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

Image Not Showing Up / Program Freezes

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

My GUI Still Freezes Even There's A Backgroundworker Doing Complicated Stuff

Mar 16, 2011

Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork

View 3 Replies

Program Freezes During Long Process?

Aug 1, 2009

[code].....

View 15 Replies

Progressbar Freezes Main Form

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

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

Timer Freezes Gui And Cant Do Anything On Main Form?

Jun 22, 2011

i have a timer (interval=4000) that does an operation , the problem is that it freezes my gui and i cant do anything on my main form , i have used Doevents , Me.refresh , but the problem still exists , I could really use some code if someone has...

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved