button - Cause program crash on purpose in VB.NET -
i'd need way cause program crash on purpose when click button. nothing comes mind still allow me compile program. code causes hard crash whatever reason. in particular need close , not able continue. beta testers need test recovery after crash feature. thanks!
these things never happen when should..
to kill process use environment.failfast() in button click handler, this:
protected sub buttoncrash_click(sender object, e eventargs) handles buttoncrash.click environment.failfast() end sub this not generate exceptions, etc., same going windows task manager , killing process.
here documentation environment.failfast method (string)
Comments
Post a Comment