I have tried wihout success increasing the heap size for an application thread by using MegabytesOfFreeMemory 128, in epoc.ini file.

Does anyone know any other way to increase heap size on emulator.