On Jul 17, 2021, at 9:41 AM, Ethin Probst <email@example.com> wrote:How are you constructing handle? Could it have gotten stale? You could print out the value of handle[I] on the failure.
The contents of a handle are not defined, but the current implementation is a pointer to an IHANDLE internal data structure in the DXE Core. If you are at the UEFI Shell and you `dh -v <handleNum> it will show the <handleNum> and the value.
Shell> dh -v 98
I think you can `dh -p UsbIo’ to get the list of the UsbIo handles.
So you can poke around and see what is happening on that handle.
I guess the handle array could be getting corrupted? So you could check for that?
Is giving me EFI_INVALID_PARAMETER and I don’t know why. I don't think