Problems with logbook

Discussions about Diving Log 6.0 - questions and hints
Post Reply
plecto
Posts: 4
Joined: Fri Jul 31, 2015 21:47

Problems with logbook

Post by plecto » Fri Jul 31, 2015 21:51

I had some problems with diving log 5.0 but after upgrading to 6.0 things worked great. Now i get an error when trying to open the logbook ( Error 1). Then the logbook opens and if i select a dive it shows a error ( error 2 ) then shows a blank divelog.

any clue what to do?

Error 1

System.InvalidCastException: Konvertering fra strengen 09.07.2015 til typen Date er ikke gyldig.

ved Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value)
ved Divinglog.Converter.Format.ToNothingOrDate(Object Value)
ved Divinglog.frmLogbook.LoadDive(Int64 DiveID)
ved Divinglog.frmLogbook.lstDives_SelectionChanged(Object sender, SelectionChangedEventArgs e)
ved System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
ved System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
ved System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedInfos, List`1 selectedInfos)
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)
ved System.Windows.Controls.Primitives.Selector.OnSelectedItemChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
ved System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
ved System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
ved System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
ved System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
ved System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
ved System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
ved Divinglog.frmLogbook.NavigateLast()
ved Divinglog.frmLogbook.LoadDiveList(String SQLstr)
ved Divinglog.frmLogbook.frmLogbook_Loaded(Object sender, RoutedEventArgs e)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
ved System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
ved System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
ved MS.Internal.LoadedOrUnloadedOperation.DoWork()
ved System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
ved System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
ved System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
ved System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
ved System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
ved System.Windows.Interop.HwndTarget.OnResize()
ved System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
ved System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Diving Log Version: 6.0.0.1
Windows Version: Windows 10


---------------------------------------------------------

Error 2

System.InvalidOperationException: Kan ikke ha nestede kall med BeginInit på samme forekomst.

ved System.Windows.FrameworkElement.BeginInit()
ved Divinglog.frmLogbook.LoadDive(Int64 DiveID)
ved Divinglog.frmLogbook.lstDives_SelectionChanged(Object sender, SelectionChangedEventArgs e)
ved System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
ved System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
ved System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedInfos, List`1 selectedInfos)
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)
ved System.Windows.Controls.ListBox.MakeSingleSelection(ListBoxItem listItem)
ved System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton)
ved System.Windows.Controls.ListBoxItem.HandleMouseButtonDown(MouseButton mouseButton)
ved System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
ved System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.InputManager.ProcessStagingArea()
ved System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
ved System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
ved System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
ved System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Diving Log Version: 6.0.0.1
Windows Version: Windows 10

divinglog
Site Admin
Posts: 4985
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Problems with logbook

Post by divinglog » Sat Aug 01, 2015 14:49

Hi

Does the logbook open on the same computer with Version 5.0? Which Windows regional format are you using, e.g. how is the date displayed in the taskbar?

Kind regards,
Sven

divinglog
Site Admin
Posts: 4985
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Problems with logbook

Post by divinglog » Sun Aug 02, 2015 00:20

Hi

Please download this update and extract it into the Diving Log program folder. Please let me know if the problem is fixed.

Kind regards,
Sven

plecto
Posts: 4
Joined: Fri Jul 31, 2015 21:47

Re: Problems with logbook

Post by plecto » Mon Aug 03, 2015 15:44

Hi.

Just extracted the update and everything seems to be working as normal.
So seems like the patch fixed the problem.

Thanx!

plecto
Posts: 4
Joined: Fri Jul 31, 2015 21:47

Re: Problems with logbook

Post by plecto » Tue Aug 04, 2015 21:03

Problem not solved...

Im able to read the dives and import from my computer. OSTC2n, but when i try to edit my dives i get this error:

System.InvalidCastException: Konvertering fra strengen 13.07.2015 til typen Date er ikke gyldig.

ved Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value)
ved Divinglog.Converter.Format.ToDBNullOrDate(Object Value)
ved Divinglog.frmLogbook.SaveDive(Int32 DiveID)
ved Divinglog.frmLogbook.PromptToSave()
ved Divinglog.frmLogbook.lstDives_SelectionChanged(Object sender, SelectionChangedEventArgs e)
ved System.Windows.Controls.SelectionChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
ved System.Windows.Controls.ListBox.OnSelectionChanged(SelectionChangedEventArgs e)
ved System.Windows.Controls.Primitives.Selector.InvokeSelectionChanged(List`1 unselectedInfos, List`1 selectedInfos)
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.End()
ved System.Windows.Controls.Primitives.Selector.SelectionChanger.SelectJustThisItem(ItemInfo info, Boolean assumeInItemsCollection)
ved System.Windows.Controls.ListBox.MakeSingleSelection(ListBoxItem listItem)
ved System.Windows.Controls.ListBox.NotifyListItemClicked(ListBoxItem item, MouseButton mouseButton)
ved System.Windows.Controls.ListBoxItem.HandleMouseButtonDown(MouseButton mouseButton)
ved System.Windows.Controls.ListBoxItem.OnMouseLeftButtonDown(MouseButtonEventArgs e)
ved System.Windows.UIElement.OnMouseLeftButtonDownThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
ved System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.InputManager.ProcessStagingArea()
ved System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
ved System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
ved System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
ved System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Diving Log Version: 6.0.0.1
Windows Version: Windows 10

divinglog
Site Admin
Posts: 4985
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Problems with logbook

Post by divinglog » Wed Aug 05, 2015 22:56

Thank you, that's related to the first problem with the date format. I've also fixed that, please download the latest patch again.

plecto
Posts: 4
Joined: Fri Jul 31, 2015 21:47

Re: Problems with logbook

Post by plecto » Thu Aug 06, 2015 20:04

This doesnt seem to fix the problem.

System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.

ved System.Windows.Controls.ComboBox.CoerceIsSelectionBoxHighlighted(Object o, Object value)
ved System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
ved System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
ved System.Windows.DependencyObject.CoerceValue(DependencyProperty dp)
ved System.Windows.Controls.ComboBox.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs e)
ved System.Windows.FocusWithinProperty.FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, Boolean oldValue)
ved System.Windows.ReverseInheritProperty.FirePropertyChangeInAncestry(DependencyObject element, Boolean oldValue, DeferredElementTreeState treeState, Action`2 originChangedAction)
ved System.Windows.ReverseInheritProperty.OnOriginValueChanged(DependencyObject oldOrigin, DependencyObject newOrigin, IList`1 otherOrigins, DeferredElementTreeState& oldTreeState, Action`2 originChangedAction)
ved System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
ved System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
ved System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
ved System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
ved System.Windows.UIElement.Focus()
ved System.Windows.Controls.ComboBox.OnMouseButtonDown(Object sender, MouseButtonEventArgs e)
ved System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
ved System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
ved System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
ved System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
ved System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
ved System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
ved System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
ved System.Windows.Input.InputManager.ProcessStagingArea()
ved System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
ved System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
ved System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
ved System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
ved MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
ved System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
ved System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Diving Log Version: 6.0.0.1
Windows Version: Windows 10

divinglog
Site Admin
Posts: 4985
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Problems with logbook

Post by divinglog » Thu Aug 06, 2015 23:53

This is again a different error message, there seems to be a bigger issue in your case. Please send me your logbook file to info (at) divinglog.de, I'll check if there is something wrong with the data. Please tell me also your Windows Regional settings you're using, e.g. US English, etc.

Post Reply