Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use exceptions instead of Debug.Assert #6

Open
emnh opened this issue Aug 28, 2016 · 0 comments
Open

Use exceptions instead of Debug.Assert #6

emnh opened this issue Aug 28, 2016 · 0 comments

Comments

@emnh
Copy link

emnh commented Aug 28, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant