Application Form Hangs But It Is Working

Apr 21, 2011

I have win7 pro, on my win form is a traffic light icon(when it starts it is red, when finished it is green), so that I know when job is finished. But when I run application icon isn't changing and form hangs it self, can not do nothing until job is finished. Only in the end, I see that icon is quickly changes to red and then back to green.

View 1 Replies


ADVERTISEMENT

.NET Application Hangs When Calling DLL

Dec 28, 2010

Its been running in production for over a year and this is the first time I saw this behaviour. The application is a VB.NET Console Application which is triggered by MQ server. This application uses a class library which is part of the same project(Say 'abc.dll'). In production around 40+ instances of this exe are running and all of them use the some of the functions from 'abc.dll'.

Last week, we noticed that all the 40 instances were shown to be running in the task manager but they were not doing any activity. There was no exception thrown or error logged in Application logs or System logs. To frantically debug the problem, I tried isolating the problem.

With all these 40+ exes hung up, I wrote a small aplication which would use a reference to this 'a.dll', create an object of one of the classes in that dll and execute a method in there. I was printing console.writelines in between to see to which point it gets to before erroring out.

To my surprise, I found that at the point where I was creating an object of a class in 'a.dll' this sample test application would also hang just like the others. No exceptions thrown. So I killed all those applications as a last resort and then when I restarted all of them, everything worked fine.

I couldn't find any explanation for this behaviour. Since it was a critical error affecting a production system(blanking out the application for 3+ hours), I have to give a very good explanation as to why this would occur. how it can be prevented in future.

(Side note: the servers running these appilcation do not have a maintenance schedule and are supposed to be up for couple of months together.

View 11 Replies

VB 2008 Application Hangs?

Mar 6, 2011

I am writing my first application in Visual Basic Express 2008 and the program conistently hangs (Not responding in the Task Manager) midway through execution. The operating system is Windows XP Professional SP3 running on a 1.20 GHz Intel Core Duo CPU with 2 GB of RAM.

The application has very deep layers of subroutines and functions, all of which are using lots of math routines. There are no recursive routines anywhere in the program. The program creates and destroys quite a few class elements, and I have written dispose methods for all of them using IDisposable, setting all the properties to Nothing. I also use GC.Collect() to force garbide collection, and GC.WaitForPendingFinalizers(). As a result, I don't think there are any memory leaks.

I think the depth of sub and function calls are causing a stack overflow, but I'm not certain. I have tried without success to increase the stack allocation to 2 Mb using Editbin.exe after reading some forums, but nothing changed. I then searched my machine and did not find EDITBIN.EXE.When the program hangs up, the background of the forms on the screen turn to solid white and the controls are no longer visible.It looks like a window pops up but it disappears too quickly to read anything. If I view the task manager while the application is running it hangs immediately. I have not published it, I am still developing and running it out of the VB environment.The more complexity (sub and function calls) I add, the earlier the program hangs.

View 6 Replies

.Net Application Hangs If Lock System

Jun 21, 2010

I have a weired problem. I developed a multithreaded WinForm application using VB.Net, and SQL Server 2008. The application works perfectly fine if I am using Visual Studio IDE to run the same. But, if I run the exe file created by VS the application hangs in case I lock my system and again relogin. The memory usage is same as it was before locking the system. CPU usage is also 0% or by max 2%. All threads are also exited after finishing there designated tasks.The application also uses threading but all threads are exited after there designated tasks. I confirmed this using various tools.[code]

View 5 Replies

.Net Application Hangs When Added On Startup?

May 5, 2011

I have created a small multithreaded application using VB.NET. There is no problem when the user manually runs this application. A problem exists when I added this application on startup. It hangs after I rebooted the system. The application is still running its thread but I can't see its GUI because its frozen. If I kill it on task manager and started again, the application works fine. What could be the possible reason/s why this application hangs when added on startup?

Imports System.Threading
Public Class USBLock
Public Event Lock()

[Code]....

or just a thought on this subject: the reason why the program hangs on startup is because the application is loaded while the .net framework service has not yet started.

View 1 Replies

Application Hangs On Call To Doevents?

Dec 22, 2010

I am re-posing this question because the prior post has gotten really full of side issues so I fear the main problems has been lost.I have a windows forms application written in VB.NET which scrapes information from serveral web pages? I am having problem with one particular site where partway through the page navigation my application hangs. When I press pause (or break) in the debugger, it stops on a call to System.Windows.Forms.Application.DoEvents.

View 7 Replies

Thread.join() Hangs Sometime Windows Application?

May 31, 2012

I am developing windows based video application, in my application I have to make multiple video files with different duration from a single video file. To achieve this I am using thread.join method(), when I run my application it works fine but sometimes it hangs and I have got to close my application using Task manager, I can't understand why my application behave like this?.

This generally happens when number of output files are more than 40. Is there any problem with thread.join() function, when number of threads are increased. I am generating a new thread for each output file because this is the limitation of the third party dll which I am using.

View 4 Replies

Application Hangs When OpenFileDialog = Windows.Forms.DialogResult?

May 19, 2010

Private

Sub Button1_Click(ByVal
sender As
Object,

[code]....

View 9 Replies

Excel Instance Hangs In NET Class Project Application

Aug 7, 2009

I am writing a class project application that is loadable from within AutoCAD. This application generates an Excel workbook with extracted data. I am having a problem with Excel closing when finished. It seems the Excel instance hangs until my application is unloaded. I have found the section of code that seems to be causing to hang, but I'm not sure why its hanging to prevent it.

Below is a copy of my code for the class (top to bottom with exception of the FileExistValidation method... too many characters ). The code section that is commented out seems to be what is causing it to hang. If I uncomment that, Excel hangs, with it commented out, Excel closes out in the background.[code]...

View 10 Replies

FAXCOMEXLib - Sending Fax - Application Hangs When Try To Cancel The Print Dialog Box

Apr 18, 2007

I have a problem when it comes to faxing html. Im currently using FAXCOMEXLib because I'm sending to a remote fax server. Sending html files causes the function ConnectedSubmit to display a print dialog box before sending the fax. The application hangs when you try to cancel the print dialog box, it seems like the ConnectedSubmit function does not return to previous line where it was called.

[Code]...

View 1 Replies

IDE :: .Net 2003 Window Application - FORM VIEW DESIGN Option Is Not Working?

Feb 8, 2010

I am encountering a very mysterious error which I have not encountered before. While trying to use VIEW DESIGN OPTION in VB.NET 2003
Solution Explorer to maintain the existing FORM the error message list below appears.Here is the error message that appear in the TASK BAR panel at the bottom of the Screen Property accessor 'IsMdiContainer' on object 'System.Windows.Forms.Design.FormDocumentDesigner' threw the following exception:'Specified cast is not valid.'

View 4 Replies

Form Hangs When Inserting Data

Aug 21, 2010

How to solve a form hangs problem during on inserting data to the database?

[Code]....

View 2 Replies

VS 2008 Form.Invoke() Hangs Up?

Jun 23, 2011

I'm using the following code to close a form (Inherits System.Windows.Forms.Form) but it sometimes hangs up at the Invoke() ...

Private Delegate Sub closeFormDelegate()
Private Sub closeForm()
If myForm.InvokeRequired Then

[code].....

View 4 Replies

VS 2010 Application Hangs While Moving Data From Text File To Datagridview

Jun 22, 2012

I have a text file which contains large amount (around 44,948 rows/lines & 9 columns) of delimited text data in a text file which I want to populate onto a DataGridView table. I have written the below code, but the application gets hung for the rest of the time & so I have to stop debugging the program.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As New IO.StreamReader(fileLocationTxt.Text)

[Cdoe].....

View 5 Replies

Communications :: Windows Form Hangs Or Freezes How Come?

Jan 9, 2011

I put this Code into a module and try to call it to start the Server side of the the applaction there also a Client but the Server side is done in a Console app but when i try to do it in a Windows Form it hangs once called to start listening. [code] i found this code on the internet that i was just playing with. its pretty neat but i cant figure out the program of the Windows form hanging issue.

View 1 Replies

IDE :: VB 2008 Express IDE Hangs On Form Redraw

Jul 8, 2009

The VB2K8 Express IDE is hanging intermittantly when I click on the form's Design tab. The tab's work area goes blank and a wait cursor appears. I can't switch tabs or do anything else within the IDE at this point. I have to go to the Task Manager, end the VB taskk, and restart the IDE. VB is at SP 1 with .NET 3.5. I have no third party add-ins or controls except for the Visual Basic Power Packs which aren't being used. At this point it is annoying and I haven't lost anything yet but it is happening more frequently over time.

View 4 Replies

VS 2008 Form Hangs Under Vista 64 Bits?

Jul 8, 2010

I have detected a problem running my application under Vista 64 bits OS.

My application is developed using VB.NT 2008 and compiled as x86

I have a main form. In this form there is an option to open other form. TThis second form must return a few values to the main form. When the user click on this 2nd form, to return values, this form hangs up (2nd form hangs up)

But for what I could have known, it continues executing the rest of code that exists after to open form. I want to say that the form dialog (2nd form) is not closed (hangs up) but it the code continues being executed, because I have seen that inserts the data in the database.

The application not returns any error and any exception.

frmWaiting (form displayed when call thread)
This forms contains progressbar
main form
Dim ThreadVentas As System.Threading.Thread

[Code].....

View 4 Replies

WinForms Form Hangs On Startup On One Machine

Jan 21, 2010

For my VB.NET application, I'm using the windows installer that came with Visual Studio. I can successfully install and run my program on any computer in our office except for one. On this particular machine, my program will stall for about 30 seconds before being able to load the main form. When I start up the task manager, the CPU is hovering at about 0 to 1%, so its not really doing anything but freezing up. It will eventually load, but it really shouldnt take this long, especially when it loads instantly on other computers. Now this machine is windows xp with serverice pack 3 and .net 3.5 sp1.

View 3 Replies

Make Application Working Better And Never Freeze / Make Application Working With Any Count For Loop Without Freeze

Jan 19, 2012

I'm using loop to read data from sql and then make some calculations then save it again to another table but when application loop for 3 or 4 times it's freeze but the job is done but if loop = 10 or more then it is freeze and hangup for long time .i need to learn how to make my application working better and never freeze and make application working with any count for loop without freeze .

View 7 Replies

Use Shell To Have Application Call An External Application But Its Not Working - Error: 'System.windows.shell'

Jun 3, 2011

I'm trying to use the Shell to have my application call an external application but its not working...I don't understand why. I get the following error: 'System.windows.shell' is a namespace and cannot be used as an expression!

Heres my code....any ideas what I'm doing wrong. Its got to be a simple...stupid error.

Private Sub mnuUpgrade_Click(ByVal Ctrl As Microsoft.Expression.Web.Interop.Legacy.CommandBarButton, ByRef CancelDefault As Boolean) Handles mnuUpgrade.Click

[CODE].....................

View 2 Replies

Forms :: Making Inactive One Form While Working On Another Form

Feb 12, 2010

suppose i have two forms form1 and form2

and i clicked on button which lead me to the form2

i want i shouldn't be able click on form1 untill and unless i close the existing form window(i.e form2)

View 2 Replies

Button Not Working In One Form / But Does On Another Form In Same Project

May 3, 2010

I am getting some wierd behavior in VS2008. I have the following code in 2 different forms in the same project. One form pops up the help as you would expect when you click the Help button, while the other form does absolutely ntohing when the Help button is clicked.[code]

View 4 Replies

Making Inactive One Form While Working On Another Form

Feb 12, 2010

suppose i have two forms form1 and form2 and i clicked on button which lead me to the form2..i want i shouldn't be able click on form1 untill and unless i close the existing form window(i.e form2)

View 1 Replies

Application Not Working With Sendkeys?

Apr 24, 2012

So I have a form with a textbox1 thats supposed to enter in a set of keywords and then ebay will give you the"Instant suggestions" in return, but when I have my textbox1.text send the text over to the ebay form, ebay will not return any suggestions, unless I use the sendkeys.send method. Well, I do not like the sendkeys.send method because it's way too buggy &only works under the right conditions.Here's a pic of google instant and ebay does the same thing. So here's what I'm trying to get ebay to do:Here's the code that I have:

Dim theElementCollection As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName("input")
For Each curElement As HtmlElement In theElementCollection

[code].....

View 11 Replies

Application Working In Background?

Jun 3, 2009

i have few questions:

A) How do I create an application that works in the background where there is no instance of it visible at the screen.

B) How do Create application that will load right after windows you start windows?

View 6 Replies

Application Working On One Computer But Not Another

Feb 8, 2010

Has this ever happened to anyone? It has happened to me and one of my customers in the past but I have no idea how he diagnosed it and it is happening with another one of my clients now. The application runs, but the HTTP requests do not. The application works 100% perfect on my own computer but not the customers. He has both the 1.1 and the 3.5 framework installed, and uses Vista (same as me). Can anyone shed some light on this situation because this is a huge huge huge problem that I would rather not have to worry about in the future with other clients.

View 6 Replies

VS 02/03 Accumulator Application Not Working?

Nov 30, 2010

I am currently going through Murachs Beggining .net programming book. I am trying toimplement an application for an exercise at the end of chapter 5. The applicationspecification is as follows.

View 4 Replies

Application Has Stopped Working Error

Oct 29, 2009

I keep getting an error that says hte application has stopped working and Windows is searching for a solution. When I click to debug, it tries to start a new instance of VB, but then tells me that a debugger is already running. Why is this happening?

The error is a uncaught Win32 exception and occurs somewhere inside a thread that I create, but I have no idea where.

View 3 Replies

Application Suddenly Stopped Working?

Feb 6, 2009

i tried updating my application on a vista home basic laptop. i get "myapp.exe has stopped working" then i restore back to the old version, it still give the same error. I am sure the old version is working because I tested it before updating it.

View 2 Replies

Global Hotkey Working For Application

Mar 17, 2012

I have implemented a global Hotkey into my code but the problem is that when I move the focus from the form to IE (For Example) i cannot use the Hotkey from my application. Everything is working great if I was to stay int the form but that's not the purpose of this code.

Private Sub frmMain_Load(ByVal sender As System.Object, e As System.EventArgs) Handles MyBase.Load
RegisterHotKey(Me.Handle, 9, MOD_ALT, VK_F9)
End Sub
Private Sub frmMain_FormClosing(ByVal sender As Object, e As
[Code] .....

View 8 Replies







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