Andrew Haley wrote: > Dimiter Stamenov wrote: >> OK, but I am getting OutOfMemoryException - so what could be done? >> Well, it's either really running out of memory or you've hit a bug. >>> Do you mean that I have to rewrite that part of the code in C++? >> I wouldn't have thought so. The stack trace should give you an idea why > it's > running out of memory. > Allow me to suggest using the heap analyzer available in recent GCC-4.3 snapshots: http://gcc.gnu.org/onlinedocs/gcj/Invoking-gc_002danalyze.html#Invoking-gc_002danalyze David Daney