Out of range vector error

seriously, please learn how to use the VS debugger …

also, what’s the reason for the 2nd attempt, and drawing a poly into that ?