当我的应用执行类功能时,我遇到了问题。错误代码是:
" EXC_BAD_ACCESS(码= 1,地址为0x20 =)"
我的问题源代码是:
<form id="form1" runat="server">
<asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple">
<asp:ListItem Value="1">--Select--</asp:ListItem>
<asp:ListItem Value="2" ></asp:ListItem>
<asp:ListItem Value="3" ></asp:ListItem>
<asp:ListItem Value="4" ></asp:ListItem>
</asp:ListBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="select listitems"
ControlToValidate="ListBox1" InitialValue="" EnableTheming="True" ForeColor="#FF3300" ViewStateMode="Enabled">
</asp:RequiredFieldValidator>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
</form>
Here is the screenshot of the Xcode, when the app is broken
有人可以建议我如何解决这个问题?