Execution Based On System Idle Status

Oct 13, 2011

I am in the process of developing an application for one of my clients. I am not going into the details of the applications, but brief facts of the same. The application is divided into two tiers (actually three, but the third tier is the database (SQL SERVER) so that is not included). The top tier (or first tier) is a web application (ASP.NET) where the users shall log into the system and use the application. This web application will also access the Database directly. One important activity the users shall do is uploading excel files with various information to the server. Web Application once the upload is successful shall enter the details in the in Database about the upload along with an ID and save the excel file at a location in the server.The Second tier is a VB.NET Application which will run in the server. The application will connect the database and retrieve the list of excel file uploaded by the web application and start processing one excel file after another based on ID. The processing that will be done is very simple: read the excel file, check for certain parameters, do some calculations and insert the whole details into the database. (say some 100 records per excel file)

The server in which the VB.NET Application (Second tier) runs is hosting a serious of services and application which shall run simultaneously including the Database (SQLSERVER), web server. The Database also host tables and database for various other applications. In order to help in the smooth functioning of the system, it has been decided that the VB.NET shall do the processing activity only when the server is idle (including CPU usage is idle). I have searched the Net and found API to get the system Idle status. But the real question is how to pause the processing activity when the system switch from idle mode and continue when it is again back to idle mode. Please note that I am talking about system being idle because no other application is executing any activity except the VB.NET Application.

View 1 Replies


ADVERTISEMENT

.net - How To Know Time For Which System Is Idle

Nov 26, 2011

I'm making an application in which I'm implementing auto-monitor turn off when system is idle, i.e. when user is not interacting with the system. [URL]it does provides the componenent to know when system is idle. But when I include:

Public WM_SYSCOMMAND As Integer = &H112
Public SC_MONITORPOWER As Integer = &Hf170
<DllImport("user32.dll")> _

[code]....

It shows this error: Cross-thread operation not valid: Control 'Form1' accessed from a thread other than the thread it was created on.

View 3 Replies

Make Idle System For An Application?

Jun 9, 2011

can i make idle system for my application...so when user login system & idle for 30 minutes, system automaticly logoff...

View 6 Replies

System Idle Time Calculation Using Vc++?

Apr 8, 2009

I need to get the sytem idle time.It must be developed in vc++ and the code should not use hooks is there any possible way of getting SystemIdleTime from taskmanager

View 1 Replies

ASP.NET -> WCF Concurrency - System Hangs And Goes Into A Idle State?

Apr 20, 2009

I'm developing an Ajax-based application which makes heavy use of server calls to a WCF layer that communicates with a DB.Whenever I effect from the client (an ASP.NET page) many calls within a short span of time to the underlying WCF services, the system hangs and goes into a idle state.

View 2 Replies

VS 2010 - MessageBox.show - Maintain Execution And Display Status On Second Window / Form

Dec 2, 2011

I've created a form with several controls to specify the inputs to my program. They include TextBox, OpenFileDialog, Button and even a user control for numeric input. When the user clicks the 'GO' button, the program begins it work. Opening several files and processing a bunch of numerical data. This could take many minutes/hours with large datasets.

What I've been trying to do is have another window/form open up and send status information to it for the user to view. The info to be displayed is varied and constantly updated as the program crunches the numbers. Many many programs do just this type of activity.

I attempted to create a second form with a huge TextBox thinking I'd just write stuff to it. I called the .show method within the .click of the 'GO' button and of course the form is displayed but control of the program's execution doesn't return until the form is closed. How to I maintain execution and have a second window/form to display status?

View 3 Replies

Make A Idle Event That Sets A Timer To Determine If System Idles For A Minute

Dec 5, 2011

I wanna know how to make a Idle event that sets a timer to determine if my system idles for a minute and pop outs a form and stop the timer if that form loads?

View 2 Replies

System Timer - Checking Message Status?

Jun 9, 2010

I have application that use MSSQL database. Application have module that is using for sending messages between application users. When one user send message to another I insert message in database, and set message status to 1( after user read message database I update and set message status to 0). Now, I am using system.timers.timer for checking message status, and if message status 1 user get alert that he has one message inbox. The problem is that this application can be used by many users, and if timer run ever 5 minutes this gone slow application and database.

View 3 Replies

VS 2008 System.Net.Socket Connection Status?

Dec 8, 2009

im trying to detect if the connection is still active upon trying to send or receive anything. Now I have checks in place if it's connected then it will send or receive however... it's saying it's connected when it is not connected... and therefore my program tries to send and receive and errors.

I am determining if it is ok to send and receive by using the Socket.Poll(-1, SelectMode.SelectWrite)

if it's true then im connected and data can be passed..This seems to always be true until I send something and it fails..How can I catch the socket not being connected before it fails upon sending or receiving?

View 6 Replies

Asp.net - .Net Iniatialising A Class Using System.Reflection And System.Type To Create A Session Based Singlton Extension Method

Jun 11, 2009

I have had several occasions recently to access a specific class several times over a relatively small time frame.So I've been storing the value of the class in Session and trying to access it on page load, if it's not available creating a new instance and storing that in session.

So instead of constantly replicating the same code for different classes on different pages I'm trying to create an extension method to do this for me.

[Code]...

I'm stuck on what to do when I make my new instance of my class (it would have to have a New() sub)

I'm not sure where to go from here... or even if this is the best way to do it.

View 2 Replies

C# - Prevent System.Timers.Timer From Queuing For Execution On A Thread Pool?

Feb 2, 2011

There is a problem with standard System.Timers.Timer behaviour. The timer raise Elapsed event with some interval. But when time of execution inside Elapsed event handler exceed timer interval then thread pool begin queuing event handling. This is a problem in my case. This is because with my Elapsed event handler I fetch some data from database and doing something with it and finally save results back to database. But data handling should be provided only once. So, is there a way to prevent from queuing elapse events for System.Timers.Timer.

As illustration for this issue you can consider next test program:

[code]...

2) Second way is about SynchronizingObject, but it is a valuable only for Windows form application or required additional development of code for implementing object that would be implements ISynchronizeInvoke interface. More about this way you can find here

View 4 Replies

Create An Icon In The System Tray As Status For Num-lock?

Jan 12, 2010

I am trying to create an icon in the system tray as status for num-lock, caps-lock, and scroll-lock, because my keyboard that came with my computer does not have status lights on the keyboard, and only on the system tray.

The program however that came with it, does not like to work when I have some games open and stuff, it works usually in IE, and most other programs, but some programs just seem to interfere with it.

I have made a new program on a 1 mili-second timer for the 3 and it seems to work just fine in the application, I was wondering now if I could move that over to the system tray and make it look like the one that came with computer, it has 3 different icons, and the icon changes for on/off and has a tooltip status change on mouse-over showing status of on/off.

View 3 Replies

Get System Date From SQL Server To Status Strip With Timer Control

Dec 15, 2011

How can I get SQL Date and time into statusstrip with timeer control

View 4 Replies

VS 2005 Using A Status Strip To Notify The User About The Status?

Sep 1, 2009

Here is my insert statement:

[Code]...

Now for a succesful insertion i want to notify the user about a successful save operation.....i.e,i want to display a message "Successful Save Operation"to the user. How to do this using the Status Strip?

View 2 Replies

Status Bar With The Current Browser Status Text?

Mar 20, 2009

I've got the code to display the current browser status text in the status bar but i want it to display the name of my web browser aswell. Example: Dreamincode.net - (Name of Webbrowser)

He is my code for the displaying staus text.
Private Sub webBrowser1_StatusTextChanged( _
ByVal sender As Object, ByVal e As EventArgs) _
Handles webBrowser1.StatusTextChanged

[Code]...

View 2 Replies

VS 2008 Getting Status Of "system.diagnostics.process.start"

Aug 11, 2009

I'm using system.diagnostics.process to launch a web page in the browser: system.diagnostics.process.start("http://........").

It works well. My question is how to get a return value? What if the browser has failed to launch the address or I'm not connected to internet? Can I catch it by any return value?

View 3 Replies

Set The System Date Of A Workstation Based On The System Date Of The Server?

Dec 13, 2009

i want to set the system date of my a client pc based on the system date where the sql server reside.In short i want to sysncronize the date between the client and server.I have a working code in vb6 but i dont know how to do it in vb 2008.

dim RstDate As ADODB.Recordset
Set RstDate = New ADODB.Recordset
RstDate.Open "SELECT GETDATE() as ServerDate ", CnAP

[code]....

View 5 Replies

.NET And MYSQL Based Registration System?

Jun 21, 2010

I have linked my vb.net application with mysql database but i am having a problem inserting data from the vb forms into the relevant fields in the database...

View 1 Replies

Way Of Implementing A Plug-in Based System

Feb 18, 2011

I've written a pretty good browser in vb.net (it's in the "Share your Project" forum). I now want to give users and other developers the ability to extend/add buttons & functions to it. Can anyone suggest to me a good way of implementing this bearing in mind that I've never tried to do anything like this before? (so basically a way of implementing a plug-in based system. I was planning on these being small snippets of code which my application has the ability to compile.)

View 5 Replies

Asp.net - Datarating System Based On Gridview Data?

May 19, 2011

What I want to do is basically have a column that ranks the users so if there were 10 people it would rank the person with the highest sales 10 and the second highest 9 and so on. Theres not always going to be 10 employees

I am using a stored procedure along with a sqldatasource to connect to my stored procedure. To get all the data for each agent, then I am using functions like

Dim TotalSales As Decimal = 0.0
Function GetTotalSales(ByVal Price As Decimal) As Decimal
TotalSales += Price

[Code]....

and then some how sort the array list and print the index of the agents sales total?

View 1 Replies

C# - Isn't .NET's Integer Just Simply Based On Two's Complement System

May 18, 2012

MSDN: Int32 values are represented in 31 bits, with the thirty-second bit used as a sign bit. Positive values are represented by using sign-and-magnitude representation. Negative values are in two's complement representation. Isn't it true that the representation of positive values using sign-and-magnitude system is identical to the representation of positive values using two's complement system? So shouldn't it have been rewritten as: "Int32 values (regardless of positive or negative) are represented in two's complement representation",

View 1 Replies

Convert A VB6 Program Based Off Of The Coordinate System?

Aug 5, 2009

I am trying to convert a vb6 program based off of the coordinate system. VB.net does not seem to recognize any of it.

View 2 Replies

Generate A Specific Key Based On Certain Details About The System?

Apr 7, 2010

I have asked questions about this before but my program has came to cross roads where I require more flexibility in my security procedures.At the moment I generate a specific key based on certain details about the system, and I hash this data to file, which ensures it will only run on this system.

However it has now got to the point where I have a need for providing keys which will carry settings for the program within the key. So that if a customer wants an update its the matter of sending an updated key, which will allow certain areas of the program to be unlocked/locked.Obviously I can no longer use the hash, as it can't be decrypted. I am looking to use key encryption system, which will allow to encrypt data within a license key. But obviously it brings the problem of where to store Crypt & decrypt key within the program.

[Code]...

View 1 Replies

Restict The Input Of A User Based On What The System Needs?

Oct 6, 2011

how to restict the input of a user if im going to accept account e.g.,

View 7 Replies

Status Of A "book" In A System

Apr 24, 2012

here's the situation, im implementing a Library Management System. i have a form "Issue of books" and in the users form, i want the system to recognize the Status of a book in the Library system. whether the book is available or rented.

View 2 Replies

Control A Video From Textbox Value In VB Based Scada System?

May 7, 2012

I have created a Scada System in Visual Basic 2010 In this system , its display the radial Gate position of hydro power plant. i have the analog value of particular signal in a textbox which use for gate position. how can i make the radial Gate animation in this VB based scada system. Or i have a gate opening and closing video of gate. Is it possible to control the video from textbox values so that i can show the gate position at the particular analog value..

View 1 Replies

Create A System That Will Trigger Alert Based On Few Condition?

Sep 20, 2010

i want to create a system that will trigger alert based on few condition, my condition is:the alert will trigger if there is a negative value for 2 consecutive years.

example:

1)negative amount for 2005
2)negative amount for 2006

here is the code that i have for now and the result only can trigger alert for one year only..

[Code]...

View 6 Replies

Developing An Winforms Based Event Tracking System Using .Net?

Sep 24, 2009

I'm looking for some advice for an application I currently developing. I'll try to keep this as brief as possible so if additional info is need just let me know.I'm developing an Winforms based event tracking system using VB.Net (VS 2008 Pro). The application collects data via serial bar code scanners and stores this data within a MS SQL Express db located on the same Windows XP Pro workstation that the application is installed on. When the application receives the formatted string of data it checks the db table and sends a reply back to the device indicating whether the data is a duplicate. I have written a PortManager class to handle the serial based devices and this functionality is working well.

I have now been asked to incorporate a new type of collection device into the system. The new device is running embedded Linux and uses TCPIP (POE) rather than serial communication. The device manufacture has assured me he can provide a string from the devices integrated scanner in the same format as my serial based devices.

If possible, I would like to utilize the current application and just add the ability to use the TCPIP devices to it. I was thinking it might be possible to just add a new class (similar to my Port Manager class) to handle the TCPIP based devices.I'm really at a loss as to the best way to approach this. I'm just not that familiar with collecting data from a Winforms application using a TCPIP based device.

View 3 Replies

Game Programming :: Coordinate Based 2D Map And Waypoint System

Dec 16, 2010

I am reading the memory from a game and I have managed to find the x,y,z values of the player (z is irrelevant). Now I am trying to make some sort of a waypoint system and I thought it would be best to make a small coordinate based map that will act as a birds-eye view of whats going on ingame. But I don't know where to begin creating this thing, since it needs tons of xyz values.Just throwing this in here since I've already made the thread:I also want a small circle to represent the player that will turn, facing waypoint 1 and move in a straight line towards it.

View 1 Replies

Run When Resume From Idle?

Sep 16, 2010

Can anyone tell me how I could make my program (running in background) do something when when Windows becomes active after being idle?

View 4 Replies







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