Error codes · Scopes, tasks and resources
PW2003
handle_used_late
The program must hold to this: a handle cannot be used after its owning scope has exited.
Reading the diagnostic
pw check prints the code in brackets, [PW2003], with the sentence above and the place in your program. Errors and diagnostics explains how to read one, and every code is listed with its rule.