VS 2008 Program Freezes On Tab Change

Sep 2, 2009

I have a program that has multiple tabs, with roughly 100 - 400 controls of varying types on each area. The program takes about...4 seconds to load, which I don't think is right.I did a few memory tests on the program startup, and idling it. At startup, the program uses 100% CPU usage, and 102mb of RAM, but then the form displays, the RAM drops to 20%, and CPU at 0%.Changing a Tab locks the program up for 1 to 2 seconds depending on the tab, and memory fluctuates.Am I doing something wrong here, when a program form has literally over 500 controls of many types, spanning 6 tab pages, or should I be doing something different?

View 12 Replies


ADVERTISEMENT

VS 2008 Program Freezes While Processing

Sep 15, 2009

the hex convert code seems to work etc but it freezes but it does its job eventually I read that backgroundworkers can be used to fix this issue but I have no idea how to use it for my script

[Code]...

View 2 Replies

VS 2008 Pocketpc Program Timer Freezes On Standby Phone?

Nov 9, 2009

I was making a little timer. When the phone is not in standby, my app is working fine. But when i put the phone in standby it stops. When phone is coming out of standby, the timer is going again on the time i put the phone in standby.

I know that other tools keep working, so i there a simple way to do that?

View 1 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

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

Program Freezes During Long Process?

Aug 1, 2009

[code].....

View 15 Replies

VB Program Freezes When Click On Ok Button

Apr 15, 2011

I am making a program that requires the user to enter values and select the correct radio button. It freezes when I click Ok button and I am not sure why, I think I am not using the Do Until...Loop properly.

View 19 Replies

Program Freezes Over A Period Of Time (5sec)

Mar 15, 2011

Is there a way to code, so that if your program freezes over a period of time (5sec), it just stops trying to do it, and goto something else.

"On ERROR" wont work, since its not a error. "Try" doesnt work ether.

Its because I'm am programming something that can login to a router thought telnet, and sometimes the telnet ActiveX doesn't read the buffer or the line proberly, so when the .GetLine() func is called, it freezes. And i want away to goto another point if it keeps freezing for more than 5secounds. The telnet ActiveX that, I am using is Dimac w3sock.

View 5 Replies

Program Freezes Until Shell Interaction Finishes?

Aug 9, 2010

im working on a little project what executes a bat file on a button click using this command:Interaction.Shell("read.bat", AppWinStyle.NormalFocus, True, -1)however when this is executed the program will become unresponsive while it is running... this may be simple but is there a way i can make my program be responsive and for it to execute in the background?

View 5 Replies

Form Does Not Respond - When Press The Send Program Freezes

Jun 6, 2009

When you press the send program freezes and you can't do any thing how i can add button puss resume and stop

[Code]...

View 3 Replies

VS 2008 - Send Message Freezes App

Jun 5, 2009

I have an application that uses SendMessage to send a list of numbers one at a time to a query window in the database we use. The problem is that when SendMessage fills the textbox, then clicks "Query" (hWndQuery) my application freezes up until the query is finished running, which sometimes can take up to 20 minutes depending on the query. Any way to force the program to be responsive after it 'clicks' the query button?

Below is my code - I commented where the program freezes (15 lines up from the bottom):Private Sub Query()
Dim hWndQQ, hWndTextBox, hWndQuery, i, iResult As Integer
Dim sTemp As String
sTemp = ""
bCancel = False
[Code] .......

View 2 Replies

VS 2008 Downloading File, App Freezes?

Nov 8, 2011

I'm downloading a file using this y.Computer.Network.DownloadFileplication reezes while the file isd ownloading, I read that I should use threads to fix this problem but I dont really understand how I should do,

View 9 Replies

VS 2008 Form Freezes On .show()?

Jun 24, 2009

My mate & Myself are currently building a IRC Client, a problem we have come across is when opening a chatroom the form Freezes for example.

We are currently using arrays so we can open multiple chat rooms and at this current time to open a chat room we use

Channels(ChatIndex).Show()
The form opens but freezes.

I have also tried using

Channels(ChatIndex).ShowDialog()
Application.DoEvents()

Using the above code, the form does not freeze but appears we can not access any of the controls such as (RTB)

What would be causing the form to freeze on .show(), Has anyone else had any similar issues?

View 9 Replies

VS 2008 GUI Freezes Up While The Backgroundworker Runs?

Nov 6, 2010

Of course, it's nice enough to unfreeze itself when the task is completed. I have must at looked at this code for 2 hours, and still can't find the bug.

Imports System.Threading
Public Class Form1
Dim PathAmount As Integer = 0

[code]......

View 2 Replies

VS 2008 : Client Freezes Up For No Apparent Reason?

Jan 31, 2010

I have created an authentication system in the Server that verifies the user exists and password is valid. Here's the code I use for checking a Connect:

vb.net
Private Sub messageReceived(ByVal sender As ConnectedClient, ByVal message As String) If message <> String.Empty Then Me.Invoke(New WriteLog(AddressOf WriteMessage), String.Format("Message: {0}", message)) Me.Invoke(New WriteLog(AddressOf WriteMessage), String.Empty) Me.Invoke(New WriteLog(AddressOf WriteMessage), String.Empty) 'A message has

[code]....

Basically, I follow through the code and I do receive the user list and it is created as needed. But the GUI thread still remains locked up and I don't know why.

View 9 Replies

VS 2010 - Backgroundworker And List Of Images "freezes" The Program

Apr 28, 2012

I'm filling a FlowLayoutPanel with PictureBoxes at runtime, each picturebox has an image from the List(of Image). Depending on the selected folder, loading the images "freezes" the program, so I want to use a BackgroundWorker. I'm having problems with "Cross-thread operation not valid". I want to fill the FlowLayoutPanel with the images from selected folder and a ComboBox with the names of the files.

View 4 Replies

Process.start() Freezes Main Program Until Process Finishes?

Feb 21, 2011

I have a program that starts another program after setting the regkeys basically the program continually syncs the calandar of outlook and another application.I set the regkeys than launch the c:sync.exe app. I have tried a simple process.start and launching the process as a thread and they both do the same thing: The other process starts and works as it should but my main program goes "White screen" or "not responding" until the process.start has exited.

I want the process.start to run in the background so if users click in my main app it responds and truly that they can access the context menu of my main app from the taskbar while the process.start is running.

View 5 Replies

VB 2010 - Try And Load A Project (any Project) The Program Freezes

May 28, 2010

Has anyone else had issues with Visual Basic 2010?My visual basic program has been running fine for months but recently every time I try and load a project (any project) the program freezes, then I have to close it down and reload, every time I load Visual basic for the second time I get the following error:


HTML

An error was encountered while opening associated documents the last time this solution was loaded. Document load is being skipped during this solution load in order to avoid that error.Plus when trying to run a project in debug it takes ages to load (around 5 minutes) this has only started happening recently, projects were loading in seconds.

View 9 Replies

VS 2008 Making A Program Dealing With Change?

Oct 11, 2011

Write a program that makes change for amounts less than one dollar. Input to the program should be an integer less than 100. Output should be the original amount together with the proper set of coins that add up to that number. The program should produce change consisting of the minimum amount of coins possible. The output should be printed in such a way as to avoid unnecessary amounts.For example:

32 cents should be printed as:32 requires 1 quarter, 1 nickel, and 2 cents Rather than� 32 requires 1 quarter(s), 0 dime(s), 1 nickel(s), and 2 cent(s)

View 7 Replies

Screen Resolution - Change My Program's Size Correct To Make Program,  800x600 Such As Minimum?

Jun 1, 2010

I made vb.net program for 1440x900 resolution, if i run my program on 800x600 or 1024x768, my program's resolution is bigger then windows, so i have problem with resolution. Now i want to change my program's size and i am interested in, wich resolution is correct to make program, 800x600 such as minimum?

View 9 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

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

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







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