CommunityToolkit / CommunityToolkit/dotnet
The app crashed during release
- Dominant language
- C#
- Stars
- 3.8k
- Forks
- 400
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the bug
Hello,
I am having difficulty using one of ‘SfNumericEntry’ controls and need your help as soon as possible.
I'll start by saying that I'm using CommunityToolkit.Mvvm, with this I declared an array of doubles with [ObservableProperty] named ‘fo_tpr’ (this contains 12 doubles initialized to 1).
The variable ‘fo_tpr’ was used in the SfNumericEntry control as follows:
```
```
Everything during debugging works perfectly, but when I move to release the app crashes.
After several attempts I arrived at declaring a double variable (not an array) and with this the problem was solved.
I have written to Syncfusion support and it seems that the code has been optimised in the release and this is preventing the app from working properly.
Is this behaviour correct? I understand that ‘Value’ wants a double variable not an array but is using ‘Fo_tpr[0]’ not the same?
Thanks in advance,
Simone
### Regression
_No response_
### Steps to reproduce
1. Declare with [ObservableProperty] the variable `double[] fo_tpr = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 };` in the viewmodel
2. Add this in the xaml
3. Launch the app in release mode
### Expected behavior
The app that doesn't crash
### Screenshots
_No response_
### IDE and version
VS 2022
### IDE version
17.12.5
### Nuget packages
- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [x] CommunityToolkit.Mvvm (aka MVVM Toolkit)
### Nuget package version(s)
8.4.0
### Additional context
_No response_
### Help us help you
Yes, I'd like to be assigned to work on this item
Contributor guide
Assessment
This issue has not been assessed yet.