uxmal / reko

Reko is a binary decompiler.

Home Page:https://uxmal.github.io/reko

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An item with the same key has already been added. (Parameter 'key') - NE Executable Error

cesar-avalos3 opened this issue · comments

Hello, I'm trying to decompile an old WATCOM-compiled 16-Bit NE Windows executable, and I'm getting this error,

Error: An error occurred during decompilation.
    An item with the same key has already been added. Key: 0015:4F8A (Parameter 'key')
       at System.Collections.Generic.SortedList`2.Add(TKey key, TValue value)
   at Reko.ImageLoaders.MzExe.NeImageLoader.LoadProgram(Address addrLoad) in d:\dev\uxmal\reko\master\src\ImageLoaders\MzExe\NeImageLoader.cs:line 293
 [...]

The executable is from "Dark Sun Crimson Sands", Mdark.exe. I have two different versions of the program, and both exhibit the same behavior.

Mdark.zip

Thanks.

Thanks for submitting this report. I will look into it later today

The issue has been fixed. Thanks again for reporting it.