This project is read-only.

PeToCPS Trap


When trying to generate .CPS for new version of dotned System libs:
c:\Windows\Microsoft.NET\Framework\v4.0.30319>petocps mscorlib.dll
PeToCps: version 1.3.16 of 01 January 2013
PeToCps: System.IndexOutOfRangeException:
PeToCps: System.IndexOutOfRangeException: Индекс находился вне границ массива.
в QUT.PERWAPI.MetaDataInStream.GetString(UInt32 ix)
в QUT.PERWAPI.PEReader.GetString()
в QUT.PERWAPI.GenericParam..ctor(PEReader buff)
в QUT.PERWAPI.GenericParam.Read(PEReader buff, TableRow[] gpars)
в QUT.PERWAPI.PEReader.ReadMetaDataTables()
в QUT.PERWAPI.PEReader..ctor(PEFile pefile, FileStream file, Boolean refs, Boolean skip
в QUT.PERWAPI.PEReader.ReadPEFile(String filename, Boolean skipBody)
в QUT.PERWAPI.PEFile.ReadPublicClasses(String filename)
в PeToCps.PeToCps.Process(Char[] nam, Int32& rVl)
PeToCps: Input file <mscorlib.dll> error <System.IndexOutOfRangeException:>
PeToCps: Summary: 1 input files 1 failed


kpmy wrote Dec 8, 2013 at 2:08 PM

I've tryed the latest version of sources from repository, but it looks like there is a bug in QUT.PERWAPI

k_john_gough wrote Dec 18, 2013 at 10:08 PM

Hi kpmy

Looks like a bug, but I will need to check it out. V4 has some new metadata so it is possible that PERWAPI chokes on it. I expect to have some time to check it out over the holiday break.

wrote Jul 11, 2016 at 5:40 AM