MPstandbyHandler (2 Viewers)

Thank you very much for this!!
The integrated solutions will be better... Why don't you let the user to activate this function, with the alert to disable UAC in Vista? When you launch the external command, you wait the end of process?

Congratulations for your excellent utility!!
 
The integration is a bit funky... :)
It would take away the simplicity ... but i will see what i can do. I really would like to have a solution that works for Vista and XP.
 
Got new version 1.0.0.8 -> see first thread entry.

I had the funny problem that MP could not be killed during resume after weeks of standby and resume on my living room pc.
So i added a feature that the pc will be rebooted if MP can't be killed during resume.
You can of course enable/disable it.

Did someone ever had the same effect?
 
I had the funny problem that MP could not be killed during resume after weeks of standby and resume on my living room pc.

No, but just came home to a .net error on resume, which when i clicked the good old continue, restarted TVServer splashscreen showed and then disappeared after its usual amount of time, which is strange because recording had already started 10 mins previous to my arrival, yet there's a full recording there.

Just updated to 1.0.0.8 version so will see what happens over the next couple of days :)
 
Sometimes this message appers... the ext time i'll get a screenshot.. I think that is your software because the splash screen is still visible, until I click continue.. if i click end the splash screen disappear and the mediaportal doesn't restart (and your software is not in the tray)...

Thanks
 
Was the .net error caused by my application?

Sorry, quiz night, so shot out the door after posting, will try and repeat with new version.

Have set a lot of daytime recordings, so will update of a evening if successful or not.

ps. keep forgeting, thanks for your time spent on this, much appreciated :)
 
I seem to still have a very strange error. I get an error that seems network related when I let the TVS and MP be restarted by this application, the first time. If I just kill MP again and use "test wakeup" every thing works...

The TVS reports: 2008-09-03 06:02:19.843750 [1]: Exception :confused:ystem.Runtime.Remoting.RemotingException: Remoting configuration failed with the exception 'System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted

And MP reports:
2008-09-03 06:02:36.453125 [ERROR][MPMain]: TVHome: Error in Reload - No connection could be made because the target machine actively refused it 85.225.219.83:31456
2008-09-03 06:02:38.453125 [ERROR][TvClient-TvHome: HeartBeat transmitter thread]: MediaPortal: Unhandled exception occured
2008-09-03 06:02:38.484375 [ERROR][TvClient-TvHome: HeartBeat transmitter thread]: Exception :confused:ystem.NullReferenceException: Object reference not set to an instance of an object.

Logs from the apps console:
2008-09-03 06:02:06 :: Info :: WM_POWERBROADCAST: 7
2008-09-03 06:02:06 :: Info :: Windows has resumed from hibernate mode
2008-09-03 06:02:06 :: Info :: OnResume
2008-09-03 06:02:06 :: Info :: WM_POWERBROADCAST: 18
2008-09-03 06:02:06 :: Info :: Windows has resumed from standby or hibernate mode to handle a requested event
2008-09-03 06:02:06 :: Info :: OnResume - already running -> return without further action
2008-09-03 06:02:06 :: Info :: Turn Display On - Trying to wake up the Display/TV
2008-09-03 06:02:06 :: Info :: Service Stop - Trying to stop (10s): TVService
2008-09-03 06:02:08 :: Info :: Service Stop - Successfully stopped: TVService
2008-09-03 06:02:08 :: Info :: Delaying TV Service start for 9s
2008-09-03 06:02:17 :: Info :: Waiting max. 4s for network interface Wireless Network Connection 2
2008-09-03 06:02:17 :: Info :: Check Network Connection - Interface Wireless Network Connection 2 is UP
2008-09-03 06:02:17 :: Info :: Service Start - Trying to start (0s): TVService
2008-09-03 06:02:19 :: Info :: Process Stop - MediaPortal is not running
2008-09-03 06:02:19 :: Info :: Process Start - Starting (20000ms): C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe
2008-09-03 06:02:22 :: Info :: OnResume - Done
2008-09-03 06:05:06 :: Info :: Test resume jobs
2008-09-03 06:05:06 :: Info :: Turn Display On - Trying to wake up the Display/TV
2008-09-03 06:05:06 :: Info :: Service Stop - Trying to stop (10s): TVService
2008-09-03 06:05:08 :: Info :: Service Stop - Successfully stopped: TVService
2008-09-03 06:05:08 :: Info :: Delaying TV Service start for 9s
2008-09-03 06:05:18 :: Info :: Waiting max. 4s for network interface Wireless Network Connection 2
2008-09-03 06:05:18 :: Info :: Check Network Connection - Interface Wireless Network Connection 2 is UP
2008-09-03 06:05:18 :: Info :: Service Start - Trying to start (0s): TVService
2008-09-03 06:05:19 :: Info :: Process Stop - MediaPortal is not running
2008-09-03 06:05:19 :: Info :: Process Start - Starting (20000ms): C:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe
2008-09-03 06:05:20 :: Info :: Test resume jobs - Done

I have attached logs...

Any clues anyone? This should work I guess?

And just as PD said, thanx for all your help and patience Josch.
 
I need the stacktrace to find the cause. If someone got that .net error, then plz send stacktrace. I never got that error on my system.
 
J.B.N.: you can solve your tvserver exception by raise the amount of time before restart tvservice in the mpstandbyhandler options... With 0 (as default) me too get an error... raising this value to 5 i get no errors...
This because after killing the tvservice process the remoting channel is not free for some seconds and restarting the tv service cause the error because a remoting channel is already registered...

Ivan
 

Users who are viewing this thread

Back
Top Bottom