Database problems with DL v6

Discussions about Diving Log 6.0 - questions and hints
Post Reply
Mjorud
Posts: 19
Joined: Sun Dec 03, 2006 18:36
Location: Norway

Database problems with DL v6

Post by Mjorud »

Hi,

I upgraded to v6 today (after getting Windows 10). Opening the log book I get errors.

Code: Select all

System.InvalidCastException: Konvertering fra strengen 13.09.2014 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
I think this might be a problem with .NET but I'm not sure. Anyone encountered this?
I'm actually having the same problem using Diving Log v5 and downloading Suunto-data from my computer so this problem has to be with my Windows 10 install.

Best regards
Jon Kristian Mjørud
Jon Kristian Mjørud
Mjorud
Posts: 19
Joined: Sun Dec 03, 2006 18:36
Location: Norway

Re: Database problems with DL v6

Post by Mjorud »

I was reading in the forum and found another user (which I also think is Norwegian from the look of the error message). I downloaded the patch that was linked in the posts and it seems to have fixed the problem. :)

I will test a bit further.
Jon Kristian Mjørud
Post Reply