Freezing Application - No Processes Running
Oct 14, 2008
I have rently deployed a VB windows application. It uses ADO typed datasets and datagrids.
On a couple of machine, if the application is left opened for a while (about more than 30 minutes), it gives no response. In order to restart it, I need to end the process vie the Task manager.
How would I even begin to troubleshoot why it is "hanging up"?
View 19 Replies
ADVERTISEMENT
Aug 15, 2011
I am trying to check for certain processes that is running and then inform the user of those processes via textbox like "The programs; -name of the processes running goes here- are running". [code]
View 2 Replies
Jul 16, 2009
I am looking for some code that will end the processes of a running program. I have found many post on how to do so but I have found that they are over complicating things. I am using this code to see if a processes is running.
code
Dim ProcessRuning() As Process
ProcessRuning = Process.GetProcessesByName("example")
Do While ProcessRuning.Length <> 0
[Code].....
View 6 Replies
Oct 10, 2009
How would I get a list of running processes and show it in a listbox? I want it to be able to update.
View 11 Replies
Jun 7, 2011
Is it possible to get a list of running application in a remote pc through wireless or wired network?? i tried this code but i get an error
Dim ps As System.Diagnostics.Process
For Each ps In System.Diagnostics.Process.GetProcesses(remote_pc_name)
ListBox1.Items.Add(ps.ToString)
[code].....
View 2 Replies
Jun 16, 2009
i'm making a new project something like a task manager. i could manage to get the names of all running processes
Imports System.Diagnostics
Public Class Form1
Dim proc As Process
[Code]...
it works. it gets process names (but without extentions) what i want to do now is to get the image path of each process. i think i will have to use a different control probably data grid view. can somebody tell me how to add items to datagridview instead of listbox? and how to get each process image path( to data grid view)?
View 14 Replies
Jan 7, 2010
I have a program that instantiates Excel, programatically updates it, and then closes it. In some cases, when I look in the task manager/processes, I can still see 1 or more copies of Excel running.
1) Is there a way I can, after creating an object reference to Excel, identify the PID or some other unique identification?
2) Using that, is there a way, after I think I have told Excel to go away, to see if the PID (or whatever) is still active?
3) Given that I have a PID, can I get a new object reference and try to tell it to go away nicely
4) If it still won't go away, can I force an end process of the task?
5) Is there a library or routine available that will return the active processes so I can search to see if there are any copies of Excel still running?
6) using the approach in 5, can I also find out if the item associated with the PID is running just as a process and not as an application?
View 4 Replies
Jan 27, 2010
I want to be able to cycle through the active processes on the system and find when my program starts? It has the name 'Calculate Distance' as the form1.vb text. There fore, I want to be able to close a splash screen when the form1 loads. This requires checking currently running processes. How do I do that in VB.NET 2005?
View 1 Replies
May 16, 2012
Is there a way/API to run processes under the service TrustedInstaller in .NET? I don't want to use a command-line tool like devxexec.
View 2 Replies
Jun 23, 2009
I'm working on a little project it is like the task manager but i want it to get a list of all current processes, the path and icon of each. i could manage to get the list but i need to know how to get the path of each and the icon. i'm using a list view to do this. any suggestions?
View 4 Replies
Jun 26, 2012
i developing a small program for work. This program will run on multiable computers within my work. This program will access a ms database which will be held on the company network. What i need to do is check if any users have the database open on their desktop. I know how to check if the database is open on a local machine but i am not sure how to check if it is open on another users machine or what i could research around this, any direction would be great. My code for checking if the process is running on a local machine :
[Code]...
View 3 Replies
Apr 27, 2012
In my program, i need to List up all processes that currently running on windows by VB.NET framework 2.0. Can i get this list with VB.NET coding?
View 4 Replies
Sep 10, 2010
I have the code below that reads all the processes running.
Dim procList() As Process = Process.GetProcesses()
For i As Integer = 0 To UBound(procList)
Dim strProcName As String = procList(i).ProcessName
'msgbox(strProcName)
Next
I want to know what company the process belongs to, like the status bar in windows explorer shows the executable info: "Description: Windows Explorer", Company: Microsoft Corporation" and so on. Is it possible?
View 8 Replies
Apr 26, 2009
I have created a program that when a user registers, it sends an email to that user, and three of my email addresses. The problem is that while it is sending, the window is un-usable and "does not respond" and the icon changes to the white box thing when you click on it. is there a way that i can run this process behind the program, so the window is still usable, but it still sends the emails?
View 1 Replies
Jan 13, 2012
I have a sub-procedure which I want to run a different process, depending on what is currently running. I thought the easiest way to do this was by using an ArrayList of each of the campaign details & adding an 'Inuse' field to check to see if the Inuse field is set to 0 or 1. The problem that I have is that when running the process it is all happening at once & the integer hasn't been changed before the next thread kicks in so my threads are running the same campaigns. I tried to avoid the problem by adding a Thread.Sleep(100) delay inbetween starting threads but this led to exactly the same problem.
Here's an example of what I am trying to do:
Imports System.Threading
Public Class Form1
Private Campaigns As New ArrayList
Private ProcessRunning As Boolean = False
Friend StopProcess As Boolean = False
[Code] .....
View 2 Replies
Apr 13, 2010
I'm creating a small application and want to add function which shows the total running processes in windows. What are the codes for that button?
View 1 Replies
Nov 13, 2010
I have created a client and server application where the clients will be run on multiple computers while the server application will be run on the host computer in the same network. So far I am able to list all the connected clients in a ListView on the server application with the IP addresses and computer names of the client computers.
[Code]...
View 2 Replies
Jan 5, 2010
I want to display in a listbox all the running processes on the local machine. Can anyone offer me some code to do this.
View 2 Replies
Jun 7, 2012
i would like to scan all the processes(aplications) running in a system before starting my program. and also need to close some programs before starting my program.how to read all the processes ruining in a system one by one.
View 1 Replies
Jan 4, 2011
Make a code to view the processes that are running to a remote computer and how to kill them by select one...
View 6 Replies
Dec 23, 2011
I have a loop and within that loop I'm running a Dispatcher Timer.[code]Basically what I want is to show each item in the items list pausing after each on for 5 seconds. I want to show elapsed time in a label and after the elapsed time hits 5 seconds show the next item. This is not possible using the Thred.Sleep method, because it just freezes my application for 5 seconds, and shows the next item without ever updating the label with elapsed time.So what to use instead of Thread.Sleep to not freeze the application and update the label with elapsed time?
View 1 Replies
Nov 4, 2008
I have a Data Acquisition and Control application that controls at 10 Hz and logs at 1 Hz. Both of those timers call a separate. I recently added a feature to the program to request 6 characters from a server for the barometric pressure. (29.206, etc) It works for the most part, but two weeks ago a computer froze, last week another one froze, and two froze this morning. I have not had freezing problems in the nearly three years this program has been running 24/7. Turns out they disconnected the server this morning, so that explains the simultaneous freezes in two test cells. I used a try catch statement, but apparently that wasn't good enough. how I can make this code more robust?
[Code]...
View 2 Replies
Jan 5, 2010
I'm using a MySQL connector in VB .Net to execute a batch of SQL inserts. This is typically on the order of 5k statements and takes around 30 minutes to process. Unfortunately, when this process is running and I use a different application on the system, upon returning to the .net app it hangs and shows "not responding". In fact, as soon as I click anywhere else in the application (move to a different tab, for example) everything locks up.
Dim transaction As MySqlTransaction = sqlConnection.BeginTransaction()
For Each sqlCmd In (sqlCmdsCollection)
sqlCommand = New MySqlCommand(sqlCmd, sqlConnection)
[Code]....
View 3 Replies
Jun 11, 2009
I am trying to create an application that will identify a process using over 50% of the CPU and set its affinity to run only on core 0. How should I go about creating this? P.S. I am trying to create this application because my PC has been creating this really anoying screaching sound when a process randomly uses over 50% of my CPU. (I have a dual-core, AMD sadly.)
View 2 Replies
Oct 20, 2010
here is what I'm trying to do (partly in pseudo code):
Public Sub KillProcess(ByRef strProcessToKill As String)
Dim proc() As Process = Process.GetProcesses
For i As Integer = 0 To proc.GetUpperBound(0)
If proc(i).ProcessName = strProcessToKill Then
proc(i).Kill()
End If
[Code]...
The killprocess part works fine. However, if I try a "For Each App As Process In Process.GetProcessesByName("chrome"") approach and have several chrome windows open then it will display the question 5 times if there are 5 chrome processes open.
View 4 Replies
Jun 27, 2011
We are currently developing a WPF/Entity-Framework based application.One of our requirements was to allow the user option to select which environment(testing, training, or production) they will connect to when logging in.Each connection option points to its own database.In order to do this we are creating new EF contexts in the following way:[code]We have made sure that all new contexts are being disposed of once its job is completed.The problem is this: when the users are using the application we are seeing hundreds of SQL Server processes in SQL Server's activity monitor. Some individual users have upwards of 30+ processes associated when using the app. Once the user shuts down the app the associated processes all disappear - but while the app is running these processes seem to stick around.
View 1 Replies
Feb 17, 2012
I am a new member here and a new user of VB.Net.So, I would like to know how to make an application that can control the processes and the services in a remote machine.
View 4 Replies
Jun 8, 2011
I am trying to make an application which will list all processes in a string when it starts. After it has listed them all I enable my timer, and in the timer there gets checked if the process is in the process list (string), and if it isn't it will add it to my listbox. The only problem is, it's not working, it's never adding an item.
vb.net
Public Class Form1 Dim AllProcesses As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'The first check For Each p In System.Diagnostics.Process.GetProcesses() If AllProcesses = "" Then AllProcesses = p.ProcessName Else AllProcesses += "|" + p.ProcessName End
[code]....
View 3 Replies
Apr 24, 2010
I had done one application using api which send the message to given number. The working of software is very fine without any error working on windows XP SP2. I heard that vista already contain the .net frame work so didnt installed .net frame work in machine. I checked in vista it shows .net frame work is in machine. But when same code i tried to run on Vista it gives the error. Error is as follows
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at SmsSendingApplication.frmSingleMessage.InternetOpenUrl(Int64 hInternetSession, String& lpszUrl, String& lpszHeaders, Int64 dwHeadersLength, Int64 dwFlags, Int64
[Code].....
View 7 Replies
Jul 25, 2011
I have a Console app that loops through a queue and processes each record in a datatable. Each process is long and time-consuming (connecting to a remote website, downloading files, reading them and adding them to the database). I'm trying to implement threading for speed's sake but am having cross-threading issues. (The job takes 8 hours or so to run and the cross-threading doesn't start happening until a couple hours into the run.)I'm trying to figure out how to make my code thread safe. I don't update or rely on any non-local variables, and I don't need to return anything. I've tried locking which works but defeats the purpose of the multiple threads. What other things should I be looking for?
[code]...
View 1 Replies