Messagebox Hangs Program?

Mar 30, 2009

The messagebox shows properly but will not respond to mouse click and every is halted.. Comment out the messagebox event everything proceeds. No error is generated, things jest stop at themessagebox and willnot proceed. Code as follows:

[code]...

View 2 Replies


ADVERTISEMENT

Program Hangs On Loop

Jul 25, 2011

my program seems to just freeze whenever I press this button. I need to be able to use this because I'm reading values from a joystick as i'm making a human interface device.

Why is this freezing?[CODE...]

View 3 Replies

Program Hangs For A Few Seconds Before Closing

Mar 23, 2010

When I close my compiled application, it will always hang for a few seconds before closing. It isn't something to do with my PC, I've got a quad core with 4GB of RAM -[code]...

View 4 Replies

Program Hangs When Fonts Are Changed?

Apr 12, 2011

I have a strange problem that I can't seem to find any answers on. I wrote two programs in VB2010. Both work great, install and uninstall no problem and I have done this on 4-5 PC's and laptops, all running Win7. A friend saw them and asked if he could use the programs, but when he installed them neither of them would work. All the prereq's were there and he is also running Win7. For some reason all of a sudden his enlarged font reset itself and VIOLA! both programs started working. I have retested this and it fails/works every time.

So my question is, how do I fix this or is it fixable? Is there somewhere in VB where this has to be set to be 'flexible'??

View 8 Replies

VS 2010 Program Hangs In Vista?

Aug 4, 2010

I have a heavily timer tick driven application that seems to randomly just stop on vista/w7 while minimized, sometimes it goes on for hours sometimes just minutes but the end result is same just stops for no apparent reason, the moment i unminimize it it keeps going. This never happens on xp tho where it works perfectly so what might be the problem?

View 1 Replies

Program Hangs When Closing Serial Port?

Feb 15, 2009

I have a VB.Net 2008 app that I have converted from VB6 which reads data from a weight scale connected to a serial port. I am able to read the received data and display it on the screen, but when I go to Stop the reading and attempt to close the serial port, the app hangs.

Private Delegate Sub ShowWeight(ByVal tWeight As String)
Private Sub comScale_DataReceived(ByVal sender As Object, ByVal e
As System.IO.Ports.SerialDataReceivedEventArgs) Handles

[Code]....

View 10 Replies

Serial Program Hangs After Short Time

Sep 9, 2011

I'm writing a simple program to retrieve data via the Serial Port. I have a piece of hardware that returns its 14 byte status every time vbCr is written to it. The program works fine except after a few hundred requests the program begins to hang, off and on. Some times for a second some times for longer. I need to update every 25 milliseconds so the hanging sets in quickly. This faster the interval the quicker the problem sets in but no mater how long the interval the problem eventually starts.[code]...

View 8 Replies

VS 2010 Program Hangs On Client Computers?

May 5, 2011

I've created a multithreaded application that copies data from one directory to another, and I'm having trouble getting it to work properly on clients' computers. All computers running the software have Windows 7 and the .NET Framework 4.0 Client Profile installed, which is what I've compiled the program for. I have two threads: one does the actual copying, and the other updates the UI on the program. Whenever I run the program on my computer, even if I'm copying 45 GB, for example, it runs fine. However, if I run it on another computer, it will sometimes freeze the entire computer, so then I have to manually shut the computer down in order to use it again. I have been trying to find out why this occurs, but I cannot. Does anyone think he/she can provide me with some ideas as to why this happens and how I can prevent it from occurring?

View 4 Replies

Acrobat Hangs After User Manually Exits Program

Jun 4, 2012

I'm currently having an issue with VB.Net and Adobe Acrobat. The issue comes from exiting Acrobat but the Windows Taskbar still states that there is an Acrobat.exe process open. I have tried using Marshal.ReleaseComObject(), but it still hangs there. I do not want to have to rely on the "End Process" option on the Task bar in order to remove it.

Below is a snippet of the code that I am try to using:
Try
'Tries To Close Acrobat Application
acrobatApp.Exit()
System.Runtime.InteropServices.Marshal.ReleaseComObject(javaScriptObj)
[Code] .....

Although I am not sure if this could be a problem - I run a javascript saveAs script on the Acrobat side in order to make a copy of the file. This also could be a reason why it is hanging, but I ruled it out based on basic knowledge of saving files and exiting from other Acrobat/Microsoft Programs. Acrobat only closes when my application ends. (Currently) I am trying to make it consider the case if a user manually closes the Acrobat application.

View 1 Replies

Program Hangs During Debugging At A Breakpont Set At A Subroutine Call

Jul 5, 2009

My program hangs during debugging at a breakpont set at a subroutine call. It hangs on breakpoints anywhere inside the subroutine also. But does not hang otherwise at other locations where I have set breakpoints.

[Code]...

View 4 Replies

Program Hangs After Leaving Screen Saver Or Locking Computer?

Nov 15, 2011

Our program works fine, until someone locks the computer or the screen-saver pops up (but not ctrl+alt+delete). Once the computer is unlocked/the screen saver is closed, the application stops drawing everything except the title bar, and stops responding to input - it displays a mostly-white window which can't be moved or closed.(Example of application freezing - the mountains are from my desktop background)If we let it sit for about 5~10 minutes, it comes back to life, and doesn't hang again (even after locking the computer/screen saver popup) until the application is restarted.

View 9 Replies

Speed Up Algorithm - Sieve Of Eratosthenes - Program Hangs On Really Large Values Of N (try 10 Million)

Aug 17, 2009

I've written an algorithm that I believe to be correct for computing prime numbers up to n with the Sieve of Eratosthenes. Unfortunately, this program hangs on really large values of n (try 10 million). Here is what I've written...

Protected Function Eratosthenes(ByVal n As Integer) As String
Dim maxValue As Integer = Math.Sqrt(n)
Dim values As Generic.List(Of Integer) = New Generic.List(Of Integer)

[code]...

How might I speed this algorithm up? Where are my bottlenecks?

View 12 Replies

MessageBox In Visual Basic Express 2010 Open Form3 From MessageBox?

Mar 28, 2011

From my login form, and when a correct Username and Password has been succesfull and I get a messageBox saying "welcome to your System" (Picture Below) and when I press the OK button in that MessageBox, I want to open Form3.do I add code to the Underlined code (below Picture), or Do I write a completley different code after the messageBox code.

[Code]...

View 5 Replies

Program With Updates - Messagebox Comes Up To Say There Is An Update?

Aug 29, 2011

When i create a program in VB 2008, is there a way that a messagebox comes up to say there is an update?

View 1 Replies

PhpMyAdmin MySql Database - Program Hangs In The For Loop Before The Variables Are Assigned Values From The Data Table

Jan 5, 2012

I am using vb.net with phpMyAdmin MySql database. While running the piece of code below, the program hangs in the for loop before the variables are assigned values from the data table(dt)...

'Check for appraisal period-----------------------------------------------------------------------
Dim sqlCheckDate As String = "SELECT * FROM tblappraisalsetting where appSetID=(select max(appSetID) from tblappraisalsetting);"

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

View 1 Replies

VS 2008 Adding A Prompt (MessageBox) During Program Exit?

Feb 21, 2011

I have a mini form application. What I need is to have a message box asking the user to confirm exist. Yes/No. This should happen if the user click the exit button on the form or the (X) on the title bar.

I have this piece of code attached to the exit button on the form. I'm trying to use an if statement but don't have a clue as to how I can apply it to what I already have.

Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
MessageBox.Show("Are you sure you want to exit?", "Confirmation", _

[Code].....

View 1 Replies

Winforms - Making A Form Halt Other Program Activity Like A Messagebox

Feb 29, 2012

I want to create a custom form (in visual basic .NET) that will stop other process responsiveness until the form is acknowledged. It would be a nice bonus if I can add a beep when trying to access the main program UI while this form is displayed as well (like how a messagebox does).

[Code]...

View 1 Replies

.Net BackgroundWorker Hangs Up?

Mar 21, 2011

I have limited experience in VB.net and have become stuck. I have tried to search for answers on other threads without success.I have an application that displays real time data.Queries are made to a MySQL database on another PC over the internet every 10 seconds to gather the most recent data.I have done the query within a BackgroundWorker so that the GUI is still responsive while the query is answered.What I've done works great for several hours or maybe for a couple of days but then the DoWork task appears to hang.

The code I'm using is to run the background worker is:

vb
If Not(backgroundWorker1.IsBusy) Then Me.backgroundWorker1.RunWorkerAsync() End If

The backgroundWorker runs just once and there's very little code in the DoWork routine:

vb
Private Sub backgroundWorker1_DoWork(ByVal sender As Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles backgroundWorker1.DoWork rs = New

[code].....

Is there anyway I can set up a timeout on the maximum allowed time that the DoWork task can be active for? And if so how would I then go on to stop the backgroundWorker?I understand that CancelAsync isn't going to help as my DoWork task is not repeating as it runs once only, then stops and 10 secs later I run it again.

View 1 Replies

IDE :: Build Hangs In VB

Dec 6, 2011

When i try to build a project, vb hangs and displays this message in the notification area Microsoft Visual Basic Express 2010 is Busy. i have to end up using Task Manager to end the process i have been using VB Express for about a year and have never had this problem. i have tried to re-install VB 2010 express, no joy.

View 1 Replies

OpenFileDialog Hangs Used Once?

May 26, 2012

ApplicationName has stopped workingA problem caused the program to stop working correctly.Windows will close the program and notify you if a solution is available.

Here is my code:
Private Sub OpenFile()
Dim OpenFileDialog As New OpenFileDialog

[code].....

View 10 Replies

.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

Dataset Designer Hangs?

Nov 10, 2010

When using the Dataset Designer in VS 2010 I add a new query.It adds with no issue.Add another,starts to hang. Add another and now it can hang for hours.I use task manager to kill VS 2010 after 30 minutes.Go back into the same table adapter query, modify it, save it.Works in seconds.Add another query, hangs, hangs, hangs.I have seen posts about this going back to VS 2008.I have No Add-Ons loaded, what is causing this issue??

View 2 Replies

FTP Upload Works But Hangs

Jan 12, 2011

I have this code to upload to a ftp server. It works but the problem is it freezes the program and sometimes you can end up waiting for long time and not even know its working.
Code:
Dim clsRequest As System.Net.FtpWebRequest = _
DirectCast(System.Net.WebRequest.Create("ftp://" + txt_ftp_username.Text + ":" + txt_ftp_password.Text + "@" + txt_ftp_server.Text + ":" + txt_ftp_port.Value.ToString + "/" + txt_ftp_dir.Text + "/" + txt_ftp_name.Text), System.Net.FtpWebRequest)
[Code] .....
Can this code be modified so that it will run without freezing the program and then just add a button labelled "STOP" to stop the ftp connection/upload?

View 1 Replies

Hangs When I Switch To Design ?

Aug 21, 2009

I have downloaded SP1 and installed it,I have an applciation with 10 form and numerous classes and dialogs. When I right click a form in the soultion Explorer window and choose view Designer VS hangs for anything upto 10 mins. Is there anything that I can disable/ enable to stop this hapening. The only Language that I will be developing in is vb.net.

View 10 Replies

IDE :: VS 2010 Debugger Hangs (VB)?

Oct 3, 2011

Im developing several applications under Visual Studio, and now have a real nightmare in hands. When i start to debug, VS hangs completely. Windows allows me to start task admin, and close the "devenv" process.I have serious problems here. I need to deliver my projects before the deadline!

Win 7 Pro 32 bits, VS 2010 SP1, running on HP computer based on Intel i5, 4gb ram. everything works as intended, except VS. When debug crashes, the devenv process uses about 25% of CPU and 250~400Mb of ram.

View 12 Replies

My Webbrowser Control Hangs

Jul 31, 2010

Using VB2005 I am trying to display several sites to my user. One of them being[url]... Ive laid down the very basic code just to navigate to the page but every time it tries to reach the site it just hangs. Strange is that Ive downloaded other examples of web browsers with very similar code and Im able to reach the site with no problems. Could the site be banning my specific app from reaching it and if so what mechanism would they use?

View 20 Replies

ReadToEnd Hangs On Redirect?

Jun 7, 2011

I am using VB in VS 2008. I am tring to call an external process and redirect the input, and pars the output back to my code.I started with the useal

Dim myProcess As New Process()
Dim StringFromProcess As String
myProcess.StartInfo.WorkingDirectory = (path & "in")

[code]....

but I will need 4 of them to get to the data and it seem to me its messy coding. Is there a way to get ReadToEnd to work when reading data over TCPIP? Or perhaps a different/better way to read back from my process?

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

WebSite Monitoring App Hangs?

Mar 11, 2010

I am writing a fairly simple web site monitoring app. It uses a timer to call a class that requests a web page and measures the response. Problem is that the third time the class is called the app hangs. looking at the locals box I see that the properties of the httpURL object are 'Property Evaluation Failed' .

Imports System.Net
Imports System.Net.Sockets
Public Class Form1

[Code]......

View 2 Replies

Whenever Execute - Code Hangs ?

Nov 15, 2011

When ever i execute this code it hangs ..how to troubleshoot

Imports System.Net
Imports System.IO

Partial Class vbIPNexample

[CODE]...

View 1 Replies







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