Thanks for that GetMem. However, it gives me the same result.
This is very odd behavior because anytime I try and access the system tables in this application I get the same out of bounds error. The same code works properly in a small application that I was testing. I took the code that worked there and put it in a new unit in my bigger application and it fails with this error. In fact if I take some of the code (those 3 lines) and put it any unit in the big app, it fails.