You've not enough memory to do your operation.
I think you do something with large arrays.
You can try to:
- Set objects to
null if you don't longer need them.
- Try what you do with a smaller array! It's possible that you don't need a large array.
- If you've array with a large datatype, try a smaller datatype. If you've an array with
longs, try it also with integers. If it doesn't work with integers, then you need to create long. Try to choose the smallest datatype!
Hope this helps.