VS 2010 Run App On Server Without Stopping?

Dec 15, 2011

I have an application that is on a server running. The way I have it setup is I put it on the Windows Scheduler to run at certain times. We now need to run it constantly on the server. I change the code to put in a loop until I pause or stop it. One issue I have found is that I can kick it off but when I close out of my remote session the application stops.

How do I keep my application to keep running even after I sign out of RDP?

View 6 Replies


ADVERTISEMENT

VS 2010 Stopping A For Loop?

Feb 10, 2011

I was wondering how someone could stop a For loop in the middle of it, according to parameters. I have tried but cannot find a solution that works, I suppose an example of this would be if a loop were increasing a label by 1 from 0 to 100 and the user sets it to end at 57 or any number in between and when the loop reached the number to stop.

View 8 Replies

VS 2010 Stopping Garbage Collection?

Oct 5, 2010

I have a callback function in a C+ dll:

<UnmanagedFunctionPointer(CallingConvention.Cdecl)> _
Public Delegate Sub DeviceDetectionEvent(ByVal YasdiEvent As YASDIDetectionSub, ByVal DeviceHandle As UInteger, ByVal param1 As UInteger)

[code].....

View 8 Replies

2010 - Editing .net Code Without Stopping Executable?

Apr 13, 2011

I need to be able to edit vb.net code using visual studio without stopping the debugging executable.How can I go about doing this? If it's impossible, how can I code and reload that code without stopping the executable? I know of scripting languages like Lua, but I fear the implementation of another language within the VB is unnecessary to save me the trouble of stopping the executable. The issue is that starting and stopping this executable can take a very long time, and I need to be able to edit the code quickly and frequently.

View 3 Replies

VS 2010 - Windows Service Stopping Unexpectedly

Jun 4, 2012

I wrote a custom windows service (VB .Net) to run some processing on data files in the background of one of our servers. The service basically finds the next file to process, breaks it apart and makes a PDF or two - nothing super complicated. It utilizes a timer, if a file is not found, it waits a bit and checks again (repeat indefinitely). The service has run for a week or two with no issues/pausing/stopping. I have plenty of error handling for this and I have not been able to break it... until today.

[Code]...

View 7 Replies

IDE :: VB 2010 Express, Windows 7 Debug Not Stopping On Error

Aug 8, 2011

I've just installed Visual Studio 2010 Express on a new laptop running Windows 7 64 bit.

When I debug a VB project and an error is encountered a message is sent to the immediate window, but execution is not halted. This means I am unable to look at variables etc.

View 2 Replies

.net - Visual Studio 2010 Debugger Is No Longer Stopping At Errors

Jul 11, 2011

I was woking on a windows app today when my errors were no longer being displayed as they usually would, instead the debugger just jumps out of the method. It works in other projects, I have put this: 'Dim i as Integer = "A"' in as my first line to try and raise an error but it just exits the sub on that line.

The output window makes a note of the exception but the usual popup trace does not appear, any ideas how I get it back??

View 3 Replies

VS 2010 - Stopping Timer When Reached To Randomly Generated Number

Nov 27, 2011

Basically I am trying to get my timer to stop when it reaches a randomly generated number.

I have dimmed num2 as integer (num2 is timer)
I have dimmed num3 as integer (num 3 is random number)
I have done num3 = randNum.Next (0, 8)

My timer is working perfectly and counts from 0 -8. My randomly generated number works too, so how do i get the timer to stop when it reaches the random num?

I have tried;
if num2 = num3 then
timer1.enabled = false
But that didn't work

View 1 Replies

VS 2010 Starting/Stopping Print Spooler (Windows Service)?

Jan 17, 2011

Since the coming of Windows7 at our office we have sometimes the issue that the print spool is crashing.Users don't have admin rights to restart the service so that leaves them only at restarting their computer as solution.Which costs alot of time... As we cannot find a final solution to this problem I've begin to write a small tool so they can restart it..I've only hard code a local admin account in the source for this operate for them..

[Code]...

View 14 Replies

VS 2010 Stopping Users From Minimizing The Form (even Using "Show Desktop")

Feb 24, 2010

I am writing a little app to take over from Active Desktop as we are using Win7.

I am having problems getting my form to stay open, if the user hits the "Show Desktop" button the form minimises. I need this to stay open at all times in the back ground.

I have disbled the minimise button to stop the users using it.

how I can stop this from happening or if I use a timer to check the windows state it apears normal as it looks like the "Show Desktop" button does not actually minimise the window!

View 2 Replies

Stopping A Loop?

Nov 12, 2010

What i have to do is write a program to display multiplication table when a number is put into the textbox and it prints out multiples of 1-12

ex.
user puts in 5, listbox should say
5 x 1 = 5

[code].....

View 1 Replies

VS 2010 : Send Data From Client To Server (encrypted) And The String Sent From The Client Is Not The Same As Received From The Server?

Jun 27, 2011

Hey guys, I am trying to send data from client to server (encrypted) and the string sent from the client is not the same as recieved from the server. I've been killing my brain for hours to get this to work but I cant manage. Im converting everything to Base64 string.

Client:

Public Sub SendMessage(ByVal msg As String)
Try
SyncLock myclient.GetStream
sw = New IO.StreamWriter(myclient.GetStream)

[code]....

View 4 Replies

.net - Stopping Other Subs From Running While In A Sub?

May 22, 2010

Is there a way to stop other subs from running while in a separate sub.

for instance say your in the sub
CreateNumber()
and the subs are setup like
CreateNumber()
AddNumber()
DeleteNumber()

Is there a way to be in CreateNumber() and call a function to stop AddNumber from running after creaetNumber() is finished? i just want my program to sit there to wait for an event to happen.

View 1 Replies

Playing One .wav File Without Stopping The Other

Nov 29, 2007

I'm currently programming a music software which plays notes which are listed. as timer ticks, the notes change and so it plays a different *.wav file. The problem now is that the previous sounds stops when a new sound starts. i want them to overlap each other until each one has finished. Code: my.computer.audio.play("file.wav")

View 30 Replies

Self-Stopping Timer Won't Stop Itself?

Feb 6, 2012

I've been trying to create a timer that waits for another timer to finish with its coding and, when it's finished, executes a series of code before stopping itself.

This isn't the code for the actual program I wanted to implement this self-stopping timer in, but it's simple and has the exact same problem:

Public Class Form1
Private Synchro As New Timer()
Private Sub MeLoad() Handles Me.Load

[Code].....

The idea here is that it's suppose to (using a timer) show the messagebox ONCE and ONLY once per button click. However, what seems to happen (despite the fact that I have 4 ways of trying to tell it to stop) is that the program creates multiple messageboxes until there are a total of about 49 messageboxes on the screen at the same time. I don't know if I'm using the wrong event (unlikely as Tick seems to be the only timer event) or there's a way of stopping the timer that I don't know.

View 7 Replies

Services Stopping On Windows 7 After Log Off?

Aug 25, 2010

I created a service in VB.NET and it runs fine on Vista, I can log off and switch users and the service auto starts and continues to run every time without fail.If I install and run the service on Windows 7, it will not start after a logg off/on or after I switch users.

View 3 Replies

Starting And Stopping A WCF Service

Oct 8, 2009

I have a WCF service, which I can open and close by doing:[code]The problem with this is I have "downtime" of the service in between myService. Close() and newService.Open(). if anyone tries to connect while this is happening it fails. how can I make the "downtime" as small as possibel?

View 12 Replies

Stopping A Timer After Ten Flashes?

Oct 14, 2010

I'm trying to figure out the code for the timer that would allow me to stop the timer after X number of runs through the code. Here's what I have so far:

im tmr_cnt As Integer
tmr_cnt = tmr_cnt + 1
If CInt(boxAns.Text) = CInt(lblnum1.Text) / CInt(lblnum2.Text) Then

[Code].....

View 3 Replies

Stopping A User From Destroying DB?

Mar 4, 2011

I'm developing an interface for users that will allow them to enter data into a database without having to know SQL. Problem is, some one out there probably does.

How can I stop them from deleting/screwing with my data when they're typing entries within my text boxes?

For example, I don't want anyone to be able to type in DELETE * or any other kind of SQL statements in a text box to ruin the DBA's day.-Nothing to see. Move along.

View 3 Replies

Stopping Function On Event In .net?

May 18, 2010

I have a vb.net application which does some processing. This processing can take a while. The application doesn't respond until the processing has ended and then it handle all events (such as click on buttons) that the user has done during the processing. I'd like to add a "Stop" button so that the user can stop the processing at some point. How can I do that? Could threading the processing (which is done in a function of the application) be a possible solution?

I tried to add a button which change a boolean value and putting the code of the processing function inside a while statement based on that boolean value. However it doesn't work because the click event on the button is processed only after the end of the processing.

View 2 Replies

Stopping Processes When App Closes?

Aug 5, 2009

Ok, so the PDF problem was traced back to when I would close the test build. When I would close my app via Me.Close the Adobe.exe was still an active process.

I have several forms that include multiple PDFs. I need to ensure that the Adobe.exe process is terminated during the exiting of my applications.

How is this accomplished or is there another way?

View 2 Replies

Stopping The Loop Stuff?

Jul 23, 2011

I used a combination of If and doWhile loop codes. Is it possible that the loop will stop at 2nd loop if it will perform a 3 loops?I'm creating an app that if the problem is got the match at 2nd out of 3rd loop, the loop will stop.

View 1 Replies

Stopping The Rest Of The Code?

Jun 23, 2009

I have this code within a button: If TextBox1.TextLength = 3 Then MsgBox("Please enter 3 numbers followed by a letter. For Example 001A")TextBox1.Text = "" Me.Refresh() End If Although if the user enters 3 numbers only, I want the rest of the code in the button to be ignored so that it doesn't proceed.

[Code]...

View 3 Replies

VS 2008 Stopping A Service

Apr 26, 2012

I know the title of this thread is a show stopper for a lot of us . But what I want to do is stop two services from running for a period of time then restart them. I know I can do this from the command prompt by using net stop servicename then restart with net start servicename. I need these two services stopped to do some work on the database. I do this manually right now and want to automate the process. I tried process.start with the command net stop but that did not work out. If I try the Process List I get the process running but not the services.

[Code]...

View 4 Replies

VS 2008 Stopping For Loop?

Jun 19, 2012

I was wondering if there was any way to stop a for loop untill i have user input, once the input is correct continue the for loop, is that possible at all

View 3 Replies

Blue Screen When Stopping Execution In IDE?

Jan 13, 2012

Using this code, before I added the funky "abort" button code - stopping it using the Stop Debugging button in the IDE blue screened my computer every time, PROCESS_HAS_LOCKED_PAGES - Anyone care to try it ? Win7 Ultimate , VS2010 SP1. This machine has never blue screened since it was built. Code is by no means exotic in any way.

Public Class Form1
Dim Abort As Boolean = False
Private BStart As New Button

[Code].....

View 8 Replies

Filewatcher Stopping At Random Times

Apr 9, 2010

I have created a form in which it watches a specified path for excel file changes - this part is on load.

[Code]...

This is supposed to delete any temp file that gets through. Then, when it finds an excel file, it will try to open it. I noticed the sub kept launching when I opened the excel file, so just another check to make it safe. the two variables filearray1 and filearraypath2 are public - filearray1 is an array list with full excel paths (another thread loops through the array and does the operations of the excel file) and filearraypath2 makes sure that the same excel file won't be added twice in a row.

Now, this works really well, but for some reason, at some point, the addfile sub won't kick off, even if excel files are changed, created, deleted, anything. I set a breakpoint on the first 'if' line of the addfile sub, opened an excel file and made changes, or created a new one, and let the program run for 10 minutes and the breakpoint never hit.

View 1 Replies

Function Not Getting Called, And Program Stopping?

Apr 18, 2011

I have a function to pull data from a XML, and to report a specific number based on a value in one of the elements in the XML. Unfortuntately, I can't get any break points to work, so I've been debugging with a trace.he strange this is that when i take out the function itself it works like it should, otherwise the Service freezes when it gets to the function and never uses it. I'm calling the function in while loop which is also within a Try Statement, here's example of the code.

Public
Shared Function GetXNumber(ByVal
audit As Audit.API)

[code].....

View 12 Replies

Get The Thread To Stop Without Stopping The Application?

Aug 12, 2011

I have an application in which there is a do...loop. I need the do...loop to perform some code and then stop for .1 of a second. When i try using System.Threading.Thread.sleep(), a wait cursot comes up and the application stops working. I was wondering if there was any way to get the thread to stop without stopping the application.

View 5 Replies

Handle Stopping Of Windows Service?

Sep 21, 2011

I have created a Windows Service in VB.NET (VS2010) that executes a certain task every minute. When the service is being stopped, either manually by the user, or when the system is rebooted, what can I do to make sure the task is being finished properly before the service is actually terminated?

View 1 Replies







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