Hi,
Can anyone help me on this.
I am facing this weird issue, when I try to fetch some rows(row by row) from my dataset(dataframe in R). First few rows are fetched without any error but after say 4-5 rows I get some exception on a line which executed perfectly for first few rows.
I am executing following statement:
SomeRDotNetObject.Evaluate("Dataset1[rowindex , ]" ); // Dataset1 is the name of the dataset
for say rowindex= 1 to 4 this works but fails on rowindex=5. And C# application crashes with following exception:-
_System.Windows.Threading.DispatcherUnhandledExceptionEventHandler -METHOD :Invoke() -LINE :0
System.InvalidOperationException: Dispatcher processing has been suspended, but messages are still being processed.
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)_
Thanks
adabral
Comments: I'm not certain why you would be using an IBindingList with WPF or even a BindingList<T> if you were trying to make it somewhat less hard on yourself and I think using ICollectionView or IPagedCollectionView is probably the strongest choice for having experience with xaml that has crossover appeal to win phone, window store apps, and even silverlight. That being said, I haven't written a WPF app since 2011 (silverlight, win phone, app store, sure, but not WPF), so take that advice with the appropriate grain of salt. Since we can't control how R works, and you've decided not to decouple things through MVVM, we have to ensure that the index lookups happen at a point when
Can anyone help me on this.
I am facing this weird issue, when I try to fetch some rows(row by row) from my dataset(dataframe in R). First few rows are fetched without any error but after say 4-5 rows I get some exception on a line which executed perfectly for first few rows.
I am executing following statement:
SomeRDotNetObject.Evaluate("Dataset1[rowindex , ]" ); // Dataset1 is the name of the dataset
for say rowindex= 1 to 4 this works but fails on rowindex=5. And C# application crashes with following exception:-
_System.Windows.Threading.DispatcherUnhandledExceptionEventHandler -METHOD :Invoke() -LINE :0
System.InvalidOperationException: Dispatcher processing has been suspended, but messages are still being processed.
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)_
Thanks
adabral
Comments: I'm not certain why you would be using an IBindingList with WPF or even a BindingList<T> if you were trying to make it somewhat less hard on yourself and I think using ICollectionView or IPagedCollectionView is probably the strongest choice for having experience with xaml that has crossover appeal to win phone, window store apps, and even silverlight. That being said, I haven't written a WPF app since 2011 (silverlight, win phone, app store, sure, but not WPF), so take that advice with the appropriate grain of salt. Since we can't control how R works, and you've decided not to decouple things through MVVM, we have to ensure that the index lookups happen at a point when