2015-08-06, 04:52 PM
I am running a client/server configuration where I put the server to sleep if not in use. Currently, I use a script (which works), that wakes the server via magic packet, enters a polling loop until the server DB wakes, and then starts NPVR on the client. Although the process works, it takes a while for the script to execute and start NPVR. I am wondering if this process could be sped up by having NPVR, in client mode, automatically send a magic packet to the server, go into a wait state until the server wakes and the DB is available, then enter the desired NPVR mode?
If the client tries to access the server's database when server is off-line, a "Server database not found" message appears. Clicking the "OK" button clears that message only to be replaced by "unhandled exception" message, displaying a "continue" button. Pressing the continue button only brings back the unhandled exception message again and on and on - in an infinite loop. Only killing the nextpvr task in task manager seems to rid this message. Not very user-friendly, IMO.
The above suggestion would eliminate the infinite loop and hopefully start NPVR on client side much faster.
If the client tries to access the server's database when server is off-line, a "Server database not found" message appears. Clicking the "OK" button clears that message only to be replaced by "unhandled exception" message, displaying a "continue" button. Pressing the continue button only brings back the unhandled exception message again and on and on - in an infinite loop. Only killing the nextpvr task in task manager seems to rid this message. Not very user-friendly, IMO.
The above suggestion would eliminate the infinite loop and hopefully start NPVR on client side much faster.