Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

System.IndexOutOfRangeException for IoTAPIPortingTool #47

Open
suwenqiang opened this issue Nov 29, 2018 · 0 comments
Open

System.IndexOutOfRangeException for IoTAPIPortingTool #47

suwenqiang opened this issue Nov 29, 2018 · 0 comments

Comments

@suwenqiang
Copy link

hello
when I use the IoTAPIPortingTool to index al.exe(an exe of Windows Assessment and Deployment Kit),the result is "System.IndexOutOfRangeException: IoTAPIPortingTool.Program.ProcessLines(String[] lines, Boolean isUAP, String filename, StringBuilder outputBuilder)", the source of error is no dll found in
al.exe. dumpbin the al.exe , return
console : Microsoft (R) COFF/PE Dumper Version 14.16.27024.1
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file al.exe
File Type: EXECUTABLE IMAGE
Summary
14000 .rsrc
2E000 .text
so in Program.cs line 254 "var currentLine = lines[index].ToLower().Trim();"
index = lines.length, it cause the error.
I do not know the code of al.exe, yet i do not know why there is no dll in it.
but i think it shoud check the index before use it in line 254.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant