Event driven program exits

  • Thread starter Thread starter Deadly_M
  • Start date Start date
D

Deadly_M

I have a basic VB.NET "windows application"
it does not need a form and is purely event driven.
At the moment when its is ran it performs the Sub Main startup then simply
EXITs because all the other code is event driven so there is nothing else to
run
what is the best way to keep my program running?
The program needs to use as little memory and CPU time as possible when its
sitting in the background(Thats why it has no form)

Thanx for any advice

_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com
 
* "Deadly_M said:
I have a basic VB.NET "windows application"
it does not need a form and is purely event driven.
At the moment when its is ran it performs the Sub Main startup then simply
EXITs because all the other code is event driven so there is nothing else to
run
what is the best way to keep my program running?

For example, a call to 'Application.Run'.
The program needs to use as little memory and CPU time as possible when its
sitting in the background(Thats why it has no form)

Does a form actually need CPU /time/?
 
Sorry , don't understand, where would that line go ?

i have a SUB MAIN for initialise with some addhandlers for the events
then i have separate SUBs for each event
If i run it just now it obviously sets up and then simply exits

Thankyou
 
* "Deadly_M said:
Sorry , don't understand, where would that line go ?

i have a SUB MAIN for initialise with some addhandlers for the events
then i have separate SUBs for each event
If i run it just now it obviously sets up and then simply exits

That's why I suggested:
 
Back
Top