X
xucheng
It raise MissingMethodException when i debug my app .The error line is
following code , lvResult is ListView control :
lvResult.Items.Clear();
then I suppose this Error should be raise by some API call , I change my
code to :
private void lvResult_SelectedIndexChanged(object sender, System.EventArgs
e) {
.......
try {
Core.ShellExecute("\\windows\\pword.exe",FileName); }
catch {
}
.......
}
But it still can not catch this Exception .
At the end , I remove the code
Core.ShellExecute("\\windows\\pword.exe",FileName); , code
lvResult.Items.Clear(); work .
In despite of why Core.ShellExecute raise Exception now , the important
thing is why this Exception should raise on API call , but it raise on
lcode vResult.Items.Clear();
following code , lvResult is ListView control :
lvResult.Items.Clear();
then I suppose this Error should be raise by some API call , I change my
code to :
private void lvResult_SelectedIndexChanged(object sender, System.EventArgs
e) {
.......
try {
Core.ShellExecute("\\windows\\pword.exe",FileName); }
catch {
}
.......
}
But it still can not catch this Exception .
At the end , I remove the code
Core.ShellExecute("\\windows\\pword.exe",FileName); , code
lvResult.Items.Clear(); work .
In despite of why Core.ShellExecute raise Exception now , the important
thing is why this Exception should raise on API call , but it raise on
lcode vResult.Items.Clear();