I'm still very new to the whole reverse engineering field. I wanted to start learning by bypassing an activation code prompt. I found the line in OllyDbg, and moved the EXE to HIEW (Hacker Eye View) to crack it. However, whenever I press F3 in HIEW to edit, it says Sharing Violation. (R)etry (A)bort

I've tried modifying the Security in the properties of the EXE I'm cracking, so that all users have full permissions. It didn't work.

I've also tried running HIEW as admin, and still to no avail. Help!

  • 2
    Have you closed OllyDbg before attempting to open the executable in Hiew?
    – fpmurphy
    Jan 1, 2020 at 2:18

1 Answer 1


You're trying to save edits to a file that is already opened by another program - in this case, OllyDbg. In fact, not only is it open by OllyDbg, but it has a debugger attached. This is the same reason why when you are programming, you cannot edit source code and rebuild the same executable while it's being debugged; You have to stop debugging in order for the compiler to overwrite the output executable file. You need to kill the process in OllyDbg first, then you can patch the binary in a program such as Hiew, 010 Editor, HxD, and so on.

This is why Hiew gives you a "Sharing violation" - you're trying to share a resource between Hiew and the debugger when the debugger has priority already.

Another option is to make a copy of the executable, open one in the debugger, and then use that to reference when editing the second one. However, the copy opened in the debugger then will not reflect any changes you've made until you kill it and load the modified version.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.