Error with SfTimePicker
Hi,
when I insert a digit while timepicker is open I get the following error (.Net 5.0 -
System.FormatException
HResult=0x80131537
Nachricht = Input string was not in a correct format.
Quelle = System.Private.CoreLib
Stapelüberwachung:
at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type) in /_/src/libraries/System.Private.CoreLib/src/System/Number.Parsing.cs:line 2000
at System.Number.ParseInt32(ReadOnlySpan`1 value, NumberStyles styles, NumberFormatInfo info) in /_/src/libraries/System.Private.CoreLib/src/System/Number.Parsing.cs:line 206
at System.Convert.ToInt32(String value) in /_/src/libraries/System.Private.CoreLib/src/System/Convert.cs:line 1155
at Syncfusion.Windows.Controls.Input.SfTimeSelector.OnKeyDown(KeyEventArgs e)
at System.Windows.UIElement.OnKeyDownThunk(Object sender, KeyEventArgs e) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs:line 2016
at System.Windows.Input.KeyEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/KeyEventArgs.cs:line 173
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/RoutedEventArgs.cs:line 336
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/EventRoute.cs:line 207
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/UIElement.cs:line 2340
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Generated/UIElement.cs:line 457
at System.Windows.Input.InputManager.ProcessStagingArea() in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputManager.cs:line 829
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/Input/InputProviderSite.cs:line 106
at System.Windows.Interop.HwndKeyboardInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawKeyboardActions actions, Int32 scanCode, Boolean isExtendedKey, Boolean isSystemKey, Int32 virtualKey) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs:line 870
at System.Windows.Interop.HwndKeyboardInputProvider.ProcessKeyAction(MSG& msg, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndKeyboardInputProvider.cs:line 540
at System.Windows.Interop.HwndSource.CriticalTranslateAccelerator(MSG& msg, ModifierKeys modifiers) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs:line 2322
at System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs:line 1814
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 137
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/MS/Internal/Threading/ExceptionWrapper.cs:line 46
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 1342
at System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled) in /_/src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/InterOp/HwndSource.cs:line 1759
at System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Interop/ComponentDispatcherThread.cs:line 100
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 2135
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame) in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 329
at System.Windows.Threading.Dispatcher.Run() in /_/src/Microsoft.DotNet.Wpf/src/WindowsBase/System/Windows/Threading/Dispatcher.cs:line 297
at System.Windows.Application.RunDispatcher(Object ignore) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 2405
at System.Windows.Application.RunInternal(Window window) in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 1695
at System.Windows.Application.Run() in /_/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Application.cs:line 198
at TimePicker.App.Main()
How can I repair it?
<Syncfusion:SfTimePicker x:Name="TimStart" Grid.Column="1" FormatString="HH:mm" />
Regards,
Jörg
SIGN IN To post a reply.
7 Replies
JÖ
Jörg
May 7, 2021 06:00 AM UTC
Hi,
Attachment: TimePicker_e9f4e2be.zip
in the appendix you will find a very simple example, only with SfTimePicker. Please start the program, expand the TimePicker and insert digit 1 by keyboard.
Then you will see the error.
Regards,
Jörg
Attachment: TimePicker_e9f4e2be.zip
SG
Sangeetha Ganesan
Syncfusion Team
May 10, 2021 07:19 AM UTC
Hi Jörg,
Thanks for contacting Syncfusion Support.
Based on provided information we have checked the reported issue “System.FormatException” and unable to replicate the issue from our end, it is working fine as expected. Please check the provided video for your reference and let us know the replication procedure is same as yours if not please share the following below details to proceed further on this
1. Provide enabled Exception settings in Visual Studio
2. Machine configuration of issue produced system
3. Details or screenshot of Operating System used in issue produced system
It will be helpful for us to check on it and provide you the solution at the earliest.
Regards,
Sangeetha G
JÖ
Jörg
May 10, 2021 09:00 AM UTC
Hi Sangeetha,
Attachment: TimePicker_2_74271460.7z
thanks for your response.
It seems that the beviour isn't the same wether I use the standard of FormatString or another option.
At the moment I am able to reproduce the error in both cases when I use the number pad instead of the digits on top of the keyboard and insert more than one digit maybe 1 and 8. Please show both videos in the appendix.
Last week I had the same beaviour while inserting digit 1. I don't know whats the difference.
Regards,
Jörg.
Attachment: TimePicker_2_74271460.7z
SG
Sangeetha Ganesan
Syncfusion Team
May 12, 2021 02:43 AM UTC
Hi Jörg,
Thanks for the update.
We have checked the reported query from our end. We can’t replicate the reported issue. We will update you the further details on or before 13th May 2021. We appreciate your patience until then.
Regards,
Sangeetha G
MS
Magesh Sankar
Syncfusion Team
May 14, 2021 12:44 PM UTC
Hi Jörg,
Thanks for your patience.
We tried to reproduce the reported issue from provided application, but we are unable to run your application from our end. In Order to avoid further delay, we would like to have web meeting with you. We will check the problem in your end and provide you the solution at earliest. Can you please share us your convenient time for web meeting.
Regards
Magesh S
JÖ
Jörg
May 14, 2021 12:51 PM UTC
Hi Magesh,
today between 5 pm and 7 pm UTC+2.
Or Monday between 8:30 am and 1:30 pm or between 3:30 pm and 6 pm.
Regards,
Jörg
SG
Sangeetha Ganesan
Syncfusion Team
May 17, 2021 12:36 PM UTC
Hi Jörg,
Thanks for your update.
We have created a new incident under your Direct trac account to follow up with this query. We suggest you follow up with the incident for further updates. Please log in using the below link.
Regards,
Sangeetha G
SIGN IN To post a reply.
- 7 Replies
- 3 Participants
-
JÖ Jörg
- May 6, 2021 03:05 PM UTC
- May 17, 2021 12:36 PM UTC