Monitoring Que With Multiple Processes

May 21, 2010

We recently have one problem started where we have two processes monitor the same queue, but the diff b/w both is, one does the PEEK only and the other process it as soon as the message arrives (event driven). Do you think that pointing these 2 processes to the same que cause any problems OR are there something special sync things we need to do?

View 6 Replies


ADVERTISEMENT

Multiple Processes With Same Name?

Apr 29, 2010

I have a need to search for a specific process in task manager and attach (dock) my application to the window for that process. I have this working just fine. The problem I'm having is that sometimes this process may be running more than once (for example: running two Internet Explorers would put two iexplore.exe entries in Task Manager).

Is there a way to get the one that was opened first? I'm not sure how they get "sorted" in the Process list, but currently I am retrieving the first occurrence of the process and docking to it, but I'm finding that it isn't always the correct one. How can I make it always dock to the process entry that was opened first?

[Code]...

View 14 Replies

.net - Open A File From Multiple Processes?

Oct 6, 2010

Basically, I'm trying to get a program to behave in the following way:First instance of the program opens up on PC1, opens a file for Read/Write access and then acts as the master program, doing a bunch of work on some other files I don't want a whole bunch of users accessing at once.Second instance of the program starts up, tries to open the file for Read/Write access, fails, enters Slave mode, opens the file for Read access, and periodically reads the status of the other files from this file.

That's the plan, anyway. If anyone can suggest a better way to handle the master/slave decision-making.Anyway, as a lead-up to implementation, I've got two instances of Visual Studio open. One is running a project called "GetFile", the other is running a project called "TryGetFile"."GetFile" has a Private myStream As IO.FileStream object and opens the test file using this line:

myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.OpenOrCreate,
IO.FileAccess.ReadWrite, IO.FileShare.ReadWrite)

This works fine and, as far as I can tell, should leave this file accessible for further Read/Write access by any other process, which is fine for this stage of the testing."TryGetFile" also has a Private myStream As IO.FileStream object, but it attempts the following open code:

myStream = IO.File.Open("\[network path] est.txt", IO.FileMode.Open,
IO.FileAccess.Read, IO.FileShare.Read)

This doesn't work at all. I get an IOException, which reports that test.txt is opened by another process and I'm not allowed to play with it.Basically, I don't see what the problem is; I don't think "TryGetFile" is asking for any file access which "GetFile" forbids it from having. As far as I can see, "GetFile" shouldn't be forbidding any kind of access at all...

[code]....

View 3 Replies

Proper Way To Launch Multiple Processes/

Jul 12, 2010

I have a quenstion to discus: I'm using Process.Start() and somettimes it's not worked properly. I meanin start application instantly or with random delays, even with hang's. So, as i wrote in title, there is a some proper way to launch another aplication?

I'm trying to write a some sort of launcher for user specific application based on createble profiles. In each profile user can set a file name (*.exe) with must be launched one or several times.[code]....

View 8 Replies

VS 2010 Check Multiple Processes?

Oct 16, 2011

how to check if one process is running but how do i check multiple processes running in the same check

PHP

Dim check As Process() = Process.GetProcessesByName("Steam")
If check.Length > 0 Then
For Each process As Process In check

[code]....

View 4 Replies

Kill Multiple Processes By Clicking Button?

Dec 2, 2008

I do computer repair for my local store and I have been noticing a ton of computers coming in with a fake antispyware program called antivirus 2008. I am trying to make a program that by clicking a button I can end the processes it loads. For now I just need to kill these processes.[code]...Kill Multiple Processes By Clicking Button?

View 2 Replies

Running Different Processes In Multiple Threads Without Overlapping

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

Display All Open Excel Workbooks In A Listbox Multiple Processes?

Jan 5, 2012

I would like to display all open workbooks in a listbox.The problem being that there may be a number of Excel Processes running.[code]...

View 7 Replies

IDE :: Monitoring Bandwidth Client In Lan?

May 21, 2010

<!-- [if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:TrackMoves/> <w:TrackFormatting/> <w:PunctuationKerning/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent>[code].....

I am a beginner in network programming with VB 6, I am a beginner in network programming with VB 6,I wanted to ask is how the VB 6 source code to know the bandwidth usage of each client in an Internet cafe, we as a server at the cafe, suppose that we had five clients that are connected directly to server, on the server so we know the bandwidth usage of the clients.

View 4 Replies

Make CPU And RAM Monitoring Tool In Vb?

Apr 3, 2009

I want to make CPU and RAM Monitoring tool in Vb. But I have no idea and knowledge about this.I can make a GUI for this but I don't know how to implement this.If you have some experience please tell me what references I have to use and what are the functions which will give current status of CPU and RAM. and also guide me how to present this information in the form of continuous graph and progress bar.I shall be thank full to all participants. If you have no experience please refer me some expert sites and groups on internet. I will try to contact them.

View 2 Replies

Monitoring A Printer Queue?

Aug 7, 2009

The below code (VB 2008) will check the print queue every milisecond for a job. It will then show the pagecount in a text box. It works great when im printing to a local printer, but As soon as I change my pc default printer to a network printer, I cant capture any data.

View 1 Replies

Monitoring Data In/out Of The Computer?

Dec 16, 2009

I want to create a bandwidth meter for Windows using vb.net, but I cannot seem to find anything in the .net framework for monitoring the amount of data in or out. I want to create this because I cannot find a good one for free, and I think it is something that people might want.If there is nothing in the .net framework for monitoring this, is there some P/Invoke calls I can make? If so, what are they?

View 6 Replies

Monitoring External Program?

Dec 25, 2010

I start an external Program using System.Diagnostics.Process.Start I want monitoring when a user has started a new file, saves or opens another file and get the info of the file in current process

View 1 Replies

Monitoring If A Variable Plateau's

Mar 22, 2009

I am dynamically adding values to list with each pass of a timer and after each pass I'd like to check if the last five elements in the list have similar values. After some time, the values should start to become constant. In other words, it would plateau.I tried to do this. Made sense to me (newbie) but I am getting errors like the bounds of the array are exceeded:[code]The list definitely works and is getting data from X. I thought I needed to ReDim the array but then I'm told ReDim statement requires an array. (ReDim platArray(Number-1)). By the way I'm using VB2008..

View 4 Replies

Monitoring Programs Starting?

Dec 26, 2009

I am trying to create a windows service that sits in the background waiting for programs to be started. When the programs start I want to be able to check a unique bit of information for each program (I believe GUIDs may provide this) to see what the program is. If the program is not allowed, I aim to provide a warning to the user and possibly close the program. The aim of the application is to identify when users are attempting to install additional software on to the computer so simply monitoring for a certain executable wouldn't work as msiexec is called for all MSI's and as I only want to stop blacklisted programs...this wouldnt work

View 1 Replies

Monitoring The SqlConnection State?

Jun 19, 2009

I have a SqlConnection global variable in my proyect that it is always open (I wouldn't like to start a discussion about keep the connection open all the time or close it everytime a transaccion is executed).

This variable is sent to every class I need to execute a function or method. Instead of checking the connection in every single operation, is there any way to monitor the connection state in a centralized way ?

View 3 Replies

Monitoring Web-browser From Different Form?

May 13, 2011

I was hoping to be able to monitor webbrowser1.documentcomplete which is being used in form1....but be monitoring it from form2.So basically I was hoping to run a form1.webbrowser1.documentcomplete in form2.If not does anyone have any suggestions? I currently am doing it with timers and it is just not working properly.

View 4 Replies

Printer Status Monitoring?

Feb 2, 2010

I am engaged in a project to alert Paper out status of printer in screen on top of all other windows. I am new to VB programming... I tried the codes given in Microsoft Support. But it gives many errors as I'm using Visual Basic 2008 Express Edition.[url]......

View 1 Replies

Program For Monitoring Folder?

Feb 28, 2010

build a program for monitoring specific folder for example : C:MyFolder

i want the program check the bove folder and give me information about the following:

Files with date modified 'current day'
The number of files with date current day
The size for that files
Send that information by e-mail

View 13 Replies

System Monitoring Tool In .net?

Apr 6, 2009

I am making my project for this semester. I am making "System monitoring Tool" so i have make a GUI and also get the all parameters but one thing missing I have tried to find from different places but not found that is the "continues line" that represents the changing values of CPU usage along time. same like "windows task manager" shows.

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

.net - Monitoring All Events In A Class And Sub-classes

Apr 25, 2010

I'd like to be able to log to the console every time an event is fired either in the object I've instantiated or in anything it's instantiated [ad infinitum]. I wouldn't see some of these events normally due to them being consumed further down the chain). Ideally I would be able to log all public and private events but if only public are possible, I can live with that.

I've Googled and all I can find is how to monitor a directory - So I'm not sure if this is not possible or simply has a name that I don't know.

The sort of information I'm after is similar to what's found in an exception - Target Site, Source, Stack Trace, etc...

Could I perhaps do this through reflection somehow?

To Give you an idea of the console App:

Sub Main()
Container = ContainerGenerate.GenerateContainer()
Dim TemplateID As New Guid("5959b961-b347-46bc-b1b6-cba311304f43")

[Code]....

View 2 Replies

FileSystemWatcher Quits Monitoring During Execution?

Mar 30, 2010

FileSystemWatcher quits monitoring during execution?

View 1 Replies

Financial Monitoring Program Samples?

Feb 15, 2012

just a newbie programmer here. With 1 week experience in VB2008. I'd like to ask for assistance on making one of these inventory systems concepts. I hear its one of the basic programs a newbie can make. This will be made for students financial monitoring. Like how much they should pay in an event. Of course will be needing to input student names and event names.

So I'd like to ask could you give me tips on what to do first?*Set aside the database stuff first.

Like the main window, or a sample of a form to which I could encode and update entry payments for students.Am not asking for codes here just samples of forms or softwares I could get some ideas.

View 4 Replies

How To Make A Network Monitoring Program

Jun 6, 2010

I'm sorry if this is in the wrong section but I don't know where else to post.I am new to vb.net and would like to tackle it head on.I would like to know how to make a network moitoring tool thatwould check who is on the network. I cant find any tutorials.

View 2 Replies

Local & Remote Service Monitoring?

Mar 10, 2011

I put together a small app I want to use on my local network for service monitoring across a few of my servers.

I'm using vb.net express 2010 with system.serviceprocess imported The problem I am having is that my code only seems to work locally, and will not retrieve the service data for any server on my network.

For example, my local machine is called "office-pc", and when running the app on it, I get all the service information.

Dim localServices As ServiceController() = ServiceController.GetServices("office-pc")
For Each localservice As ServiceController In localServices
ComboBox1.Items.Add(localservice.DisplayName)
Next

But, if I want the service info from my web server called "casper", I use the same code, but i change the GetServices() parameter like so;

Dim localServices As ServiceController() = ServiceController.GetServices("casper")
For Each localservice As ServiceController In localServices
ComboBox2.Items.Add(localservice.DisplayName)
Next

After a few seconds delay, nothing happens, ComboBox2 remains empty.

It was my understanding that GetServices() would get the local machines service info unless a machine name was specified, which in both cases is true.

So why isn't it working? Do I need to set something up on the network servers first?

View 8 Replies

Microsoft Fax Error Monitoring (SBS2008)?

Sep 2, 2011

how to catch faxing errors (outbound) using VB.NET.I am using this reference: MSDN Basically, the issue is that SBS2008 Event Log does not give the same amount of information that Windows XP did, so the users are being forced to look in the text activity log. Am I forced to loop through the log for new items, or can I actually catch errors as they come?My ultimate goal is to send an email report with the erroneous fax information (destination#, error reason, code, body or attachment).So essentially I need to figure out how to catch fax errors as they arise, by listening (this will be a VB.NET console app), and then I can take it from there.

Private Sub GetOutgoingArchiveMessages()
Dim objFaxServer As New FAXCOMEXLib.FaxServer
Dim vMessages As FAXCOMEXLib.FaxOutgoingMessageIterator

[code]....

This is what I am using to get the outgoing archive messages, but I either need to reliably get an error when it happens there, or get one on demand. I would much rather just poll the fax service for the information if I can.

View 7 Replies

Monitoring A SQL Server Table's Data?

Aug 2, 2011

I have a job in my sql server which will execute every second and insert some data for me in my table. Now, I need to do vb.net application to check whether checkouttime column in that table got data or not and if there is data then I need to get the id of that row.

How can I monitor my table's data to check whether that column got data or not.

View 7 Replies

Monitoring Double Click Of A Folder?

Jan 4, 2010

I am trying to make an app that launches a window(Form Window) whenever a user click a folder in Windows. My app will be running in the background all the time and it will be monitoring the double click of a particular folder.

I have found this[URl]..But the problem is that, it checks attributes of the folder instead of the double click.

Is there anyway i can check the double click of a folder in Windows?

View 1 Replies

Monitoring Files In Folder & Processing?

May 10, 2010

My program needs to monitor two folders and if any files arrives in any of those it needs to be processed.So i created two filewatch tasks & the OnChanged event for both This does not work when the files are already in the folders before i start to run my program.It works for just the new files coming in.having a for each loop files loop in the onChanged event will this work I would like to know what's the best way to achieve this

View 1 Replies







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