Look in method
void StopRecord(RecordingDetail recording)
in scheduler.cs
U have one big try statement.
Thats ok - except that the finally block is deleting the schedule item from the collection object.
so if anything generates an exception in this method while trying to stop the record, then the record is also deleted from this list - even though we failed somewhere.
I simply moved the "_recordingsInProgressList.Remove(recording);" away from the finally block.
The _recordingsInProgressList object is being monitored by a timer thread - so it knows which items are to be stopped etc.
But not if they are removed
/Gibman
void StopRecord(RecordingDetail recording)
in scheduler.cs
U have one big try statement.
Thats ok - except that the finally block is deleting the schedule item from the collection object.
so if anything generates an exception in this method while trying to stop the record, then the record is also deleted from this list - even though we failed somewhere.
I simply moved the "_recordingsInProgressList.Remove(recording);" away from the finally block.
The _recordingsInProgressList object is being monitored by a timer thread - so it knows which items are to be stopped etc.
But not if they are removed
/Gibman
Ethiopia