[Mono-bugs] [Bug 457164] After changing the combo box items selection, the application is getting crashed.
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Dec 10 08:51:34 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=457164
User suneetha_g at spanservices.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=457164#c10
--- Comment #10 from suneetha_g Gunisetti <suneetha_g at spanservices.com> 2008-12-10 06:51:33 MST ---
Hi,
I have tried to execute my application using mono command as you given above.
But I got failed to make my application run successfully.
Please find the attached screen shot.
As this application is a huge and there are many depends on each other. I
couldn't able to give test scenario using source itself.
Below is the code that I have it in cbGPOStatus_SelectedIndexChanged event
handler. Here cbGPOStatus is the combo box name.
private void cbGPOStatus_SelectedIndexChanged(object sender, EventArgs e)
{
int nFlags = 0;
if (cbGPOStatus.SelectedIndex != nFlags)
{
if (cbGPOStatus.SelectedIndex == -1)
{
return;
}
try
{
int idx = cbGPOStatus.SelectedIndex;
string sMsg = "Do you want to change the status for this GPO to " +
cbGPOStatus.SelectedItem.ToString();
DialogResult dlg = MessageBox.Show(this, sMsg,
CommonResources.GetString("Caption_Console"),
MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation);
if (dlg == DialogResult.OK)
{
int ret = 0;
if (ret == 0)
{
container.ShowMessage("GPO Status successfull");
}
else
{
container.ShowError("Error in performing operation");
}
}
else
{
cbGPOStatus.Text = sGPOStatus;
}
}
catch (Exception ex)
{
Logger.LogException("cbGPOStatus_SelectedIndexChanged", ex);
}
}
}
Now, I ran my application and change the selection in the combo box. This time
above event handler will fire then I am getting the 'GPO Status successfull'
mesaage and then when I click on OK in the message box, then application is
getting crashed. I couldn't able to catch the exception since the exception is
coming out of the event handler.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list