Problem, array to big program cannot be executed


I am currently make a program with an array inside contains every single color of each pixels in the program (basically it is two dimensional array with the size of my oF application screen width and height).

But the problem is I cannot get my screen larger than 320 * 240 (Due large array). Otherwise the program won’t start.

Is there anyway to improve the memory of my openFrameworks app so I can have array with size of my screen, like in Processing?

Thank you.

it probably would be easier if you are able to post some code from your implementation.