Disable Assertion error dialog box from windows form

时间:2017-12-18 08:30:32

标签: c# assert visual-studio-debugging assertions jabberd2

I have a windows form application along with some external libraries such as NEwtonsoft-Json.dll , Zlib.dll and some more libraries for different purpose. sometimes im getting this assertion messagebox with 3 buttons (Ignore,Abort,Retry). The program will continue executing when i press ignore button. after many tutorial i found a solution that , keeping the assertuienabled property as false inside the system.diagnostics Tag will not show these messageboxes. but in my code the error is still exist and which is coming from one of these external library. Any solution guys? The code inside the app.config are

var new_array = [prompt("First number"), prompt("Second number"), prompt("Third number")];

function array_sum(accumulator, currentValue) {
  return parseFloat(accumulator.toString()) + parseFloat(currentValue.toString());
}

function sum_three(arr) {
  return arr.reduce(array_sum);
}
document.write(sum_three(new_array));

Screenshot of Error Message

0 个答案:

没有答案