As we know, BEAM emulator need to add a share mode bit when calling CreateFile (GENERIC_SHARE_DELETE) for DB compaction.
It's difficult for me to compile the emulator, so I have tried IDA instead. Here is a quick fix for R13B(5.7.1) beam.smp.dll (MD5: 4c733eaef7f8619cbac0c9a4b84e20d2): Change the byte at 0xB5720 from 0x03 to 0x07. Enjoy DB compaction. For a better solution, could someone here ask the Erlang/OTP team to modify the emulator? -- Li Zhengji
