Minh Hoang 0 Posted May 8, 2022 The project information: - Delphi 10.4.3 - Target: 32-bit release - Omni Thread version 3.07.9 - Windows 11 Home 64-bit When executing in debug mode (F9), the Omni thread raises the exception: When breaking, it lands to OtlTaskControl: It should be mentioned that the project executes normally (no exception) in mode without debug (Ctrl+Shift+F9). Thank you in advance for any idea. Share this post Link to post
David Heffernan 2353 Posted May 8, 2022 Bug in your code. Show a minimal reproduction. Share this post Link to post
Minh Hoang 0 Posted May 8, 2022 Thank you David for your reply! Yes I found the bug of reading then converting the string to DateTime in the code already. Share this post Link to post
Rollo62 538 Posted May 9, 2022 @Minh Hoang The error 96/05/2022 10:20:30 is clearly not a valid date. But this format also might lead to the consideration if you are using the appropriate TFormatSettings for the conversion itself. Since "/ :" separators are used in US mainly, other countries might use different formats, for example in Germany the usual format is "dd.mm.yyyy hh:nn:ss". I think in asian countries you also might have the ". :" separators , which may lead to similar errors when not taking care about them. Suddenly a program running well in your country might crash in another country. Share this post Link to post