Page 1 of 1

Crash on having collection of enums

Posted: 06 Aug 2025, 22:49
by roozbehid
It seems having this would crash my studio on restart. I can create it and work with it while in the app but next time it crashes
<Class Name="DashboardViewModel">
  <Property Name="UIProfiles" Type="Collection" SubType="Gui.ProfilesViewModel" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
  <Property Name="ShouldShowProfileSelection" Type="Boolean"/>
  <Property Name="Step2_EnteredName" Type="String" StringMinWordCount="0" StringMaxWordCount="10"/>
  <Property Name="Step2_EnteredAge" Type="Enum" SubType="Gui.KidsAgeRange"/>
  <Property Name="Step2_ListOfAge" Type="Collection" SubType="Gui.KidsAgeRange" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
  <Property Name="Selected_UIProfile" Type="Object" SubType="Gui.ProfilesViewModel"/>
  <Property Name="Step2_SelectedImage" Type="Object" SubType="ImageSource" ImageSourcePath=""/>
</Class>
the problem is with
  <Property Name="Step2_ListOfAge" Type="Collection" SubType="Gui.KidsAgeRange" CollectionMinItemCount="0" CollectionMaxItemCount="10"/>
<Enum Name="KidsAgeRange">
  <Item Name="Preschool" Value="0"/>
  <Item Name="Kindergarten" Value="1"/>
  <Item Name="grade1" Value="2"/>
  <Item Name="grade2" Value="3"/>
  <Item Name="grade3" Value="4"/>
  <Item Name="grade4" Value="5"/>
  <Item Name="grade5" Value="6"/>
</Enum>

Re: Crash on having collection of enums

Posted: 07 Aug 2025, 11:21
by maherne
Thank you for reporting this issue, it has been fixed for our next Studio release, which is coming in the next few days.