Skip to content

ilasm.exe: Unhandled exception. RangeChecks instrumentation code detected an out of range array access #2

@3F

Description

@3F

For version v1.0.4 - 51131a5 - 4.5.22220.0
both x86 and x64

ildasm.exe /quoteallnames /unicode /nobar /linenum "/out:DllExportAndFody.il" "DllExportAndFody.exe"

seems solves problem 3F/DllExport#17

but, after:

ilasm.exe /nologo "/out:DllExportAndFody.exe" "DllExportAndFody.il" /EXE "/resource=DllExportAndFody.res" /debug
Unhandled exception at 0x00007FFF807653F7 (ntdll.dll) in ilasm.exe: 
RangeChecks instrumentation code detected an out of range array access.
 	ntdll.dll!00007fff807653f7()	Unknown
 	ntdll.dll!00007fff80779afd()	Unknown
 	ntdll.dll!00007fff80704fe9()	Unknown
 	ntdll.dll!00007fff80778c0a()	Unknown
 	ntdll.dll!00007fff8076540e()	Unknown
 	ilasm.exe!CCompRC::LoadLibrary(HINSTANCE__ * * pHInst) Line 1136	C++
 	ilasm.exe!CCompRC::GetLibrary(const wchar_t * langId, HINSTANCE__ * * phInst) Line 558	C++
 	ilasm.exe!CCompRC::LoadString(CCompRC::ResourceCategory eCategory, const wchar_t * langId, unsigned int iResourceID, wchar_t * szBuffer, int iMax, int * pcwchUsed) Line 724	C++
 	ilasm.exe!CCompRC::LoadString(CCompRC::ResourceCategory eCategory, unsigned int iResourceID, wchar_t * szBuffer, int iMax, int * pcwchUsed) Line 705	C++
 	ilasm.exe!UtilLoadResourceString(CCompRC::ResourceCategory eCategory, unsigned int iResourceID, wchar_t * szBuffer, int) Line 101	C++
 	ilasm.exe!FormatRuntimeErrorVa(wchar_t * rcMsg, unsigned long hrRpt, HRESULT marker, char *) Line 184	C++
 	ilasm.exe!PostErrorVA(HRESULT hrRpt, char * marker) Line 368	C++
 	ilasm.exe!PostError(HRESULT hrRpt, ...) Line 403	C++
 	ilasm.exe!ConvertResource(const wchar_t * pszFilename, wchar_t * pszTempFilename, unsigned __int64 pewriter, PEWriter &) Line 1097	C++
 	ilasm.exe!CeeFileGenWriter::emitResourceSection() Line 1128	C++
 	ilasm.exe!CeeFileGenWriter::link() Line 339	C++
 	ilasm.exe!Assembler::CreatePEFile(wchar_t *) Line 1662	C++
 	ilasm.exe!wmain(int argc, wchar_t * * argv) Line 727	C++
 	ilasm.exe!__scrt_common_main_seh() Line 253	C++
 	kernel32.dll!00007fff7e728102()	Unknown
 	ntdll.dll!00007fff8072c5b4()	Unknown

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions