Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

today I suddenly stumbled upon a problem. The format "ddd. dd.MM.yyyy" (and others) of the LabelStyle format of the chart was suddenly displayed completely wrong.

Further investigation revealed that the representation is correct in a debug build, but completely wrong in a release build.

The joke is that this was running smoothly before. No updates were run.

Does anyone else have this problem, or am I the only one?

Sorry, i forget about that:

I'm on NET-Framework 4.72 (any CPU), Microsoft Visual Studio Enterprise 2019 Version 16.9.6

local PC: Windows 10 Enterprise Version 20H2 Build 19042.746 Experience Pack 120.2212.551.0

Also on Server: Server 2016 Standard Version 1607 Build 14393.3750

What I have tried:

Further investigation revealed that the representation is correct in a debug build, but completely wrong in a release build.
Posted
Updated 8-Jun-21 23:19pm
v4
Comments
Richard MacCutchan 9-Jun-21 4:16am    
"am I the only one?"
Since you have not provided any details it is impossible to say.
Richard Deeming 9-Jun-21 5:20am    
Either there's a problem in your code, which we can't see; or there's a problem with the regional settings on your server, which we can't access.
Ken Guru 9-Jun-21 5:50am    
Hi Richard D.:No, same cultures on both machines. The joke is that this was running smoothly before. No updates were run. Addition: After all, on the same machine, the debug build is different from the release build.
Richard MacCutchan 9-Jun-21 5:22am    
"the representation is correct in a debug build, but completely wrong in a release build."
And we still have no idea what either representation looks like, or what code is used to generate it. As previously suggested, please provide complete details.
Ken Guru 9-Jun-21 5:49am    
Hi Richard: I expected 'Mi 09.06.21' and get 'ddd dd44273MMyy'. The Format applied was "ddd dd.MM.yy" - nothing special. Btw: I've updated my system environments.The joke is that this was running smoothly before. No updates were run.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900