Hello
I use the function Skins.QueueMessage from a background thread.
Example: Skins.QueueMessage( mtInfo, "TEST", 40 );
I set a time of 40 seconds, but if time watchdog is less than 40 seconds, vdr exit with a segmentation fault.
Is this normal? Is possible set a message with a time greater of time watchdog?
Luca
P.S. Sorry for my English
___________________________________ Scopri il Blog di Yahoo! Mail: trucchi, novità , consigli... e la tua opinione! http://www.ymailblogit.com/blog/
2008/5/18 lukkinosat lukkinosat@yahoo.it:
I use the function Skins.QueueMessage from a background thread. Skins.QueueMessage( mtInfo, "TEST", 40 );
I set a time of 40 seconds, but if time watchdog is less than 40 seconds, vdr exit with a segmentation fault.
Is this normal?
Yes, because further handling of this message is done in the main thread.
Is possible set a message with a time greater of time watchdog?
Multiple calls to QueueMessage with a shorter value for "Seconds" should work as a workaround.
Best Regards, Joachim.
lukkinosat wrote:
I set a time of 40 seconds, but if time watchdog is less than 40 seconds, vdr exit with a segmentation fault. Is this normal? Is possible set a message with a time greater of time watchdog?
It is. VDR 1.4.x even used a dirty workaround to display the 5 minute shutdown warning. (that is, calling signal(SIGALRM, SIG_IGN) before and signal(SIGALRM, Watchdog) after displaying the message.) While the message is shown, VDR is completely blocked, not starting timers and similar stuff.
From the main thread you can use mtStatus as type to display messages asynchronously. mtStatus messages will be shown without blocking until manually removed or overwritten.
Cheers,
Udo