2-dimensional array of longs and memory issues

I just thought that maybe there was some sort of common newbie mistake I might be doing here

We won't know unless you post code.
Your call.