Hi all, i have a weird problem.. i am trying to make a program with big arrays, but it always crashes with out of memory error even though the computer has 2GB memory and i've maximized the pagefile. from task manager i notice that total physical memory usage never exceed 60% when my program is running. why this keeps happening? i don't know what else to do..
one more question, is there a faster method than a simple loop to find the indexes of a certain number in an array? for example, if i have an array [2, 3, 5, 7, 9, 5, 11, 5, 5], and i want to find 5 in that array, the method should return the indexes where the element is 5, which is [2, 5, 7, 8]. i still use a simple check every element method and i think it takes a significant amount of time if the array is so big. thank you. [Non-text portions of this message have been removed]

