none
"SEHException was unhandled" when trying to use Observable.Timer()

    Question

  • Hi,

    When trying to create an observable sequence using the Observable.Timer() method, I get an SEHException.

    var timedSequence = Observable.Timer(DateTimeOffset.Now, TimeSpan.FromSeconds(1));

    I didn't think there would be much point in posting the code as there isn't anything complex going on here. This code also works correctly in LINQPad.

    I've created a console application using Visual Studio 2012 and I recently upgraded to Update 3.

    Here's the stack trace. Does anyone have any suggestions?

       at System.Reactive.Linq.QueryLanguage.Timer(DateTimeOffset dueTime, TimeSpan period)
       at System.Reactive.Linq.Observable.Timer(DateTimeOffset dueTime, TimeSpan period)
       at StackoverflowObservable.Program.Main(String[] args) in e:\Dev\rxdemos\StackoverflowObservable\StackoverflowObservable\Program.cs:line 90
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()


    The universe is mostly hydrogen and ignorance.


    Saturday, August 17, 2013 11:45 AM