SharpDisasm icon indicating copy to clipboard operation
SharpDisasm copied to clipboard

Use exceptions instead of Debug.Assert

Open emnh opened this issue 8 years ago • 0 comments

I am disassembling with try catch something that may be valid opcodes or not (just whole memory of a program).

For example I am hitting a debug assert at Udis86/Decode.cs line 429.

Debug.Assert(u.error == 0, "invalid operand size");

Currently I am working around it using http://stackoverflow.com/questions/2854024/how-to-prevent-debug-assert-to-show-a-modal-dialog, but I think it would be better to have a better failure mode when invalid operations are encountered.

emnh avatar Aug 28 '16 01:08 emnh