Anton Venter
2005-09-28 22:31:22 UTC
Hi all,
We have some code in Axapta 3.0 SP3 that generates purchase orders.
Because we are creating alot at a time, Axapta eventually runs out of
memory
and then finally crashes. We get a 'Smartheap library' error message when
running two tier and an 'AOS has lost the connection' error message when
running three tier. It seems that the kernel is requesting memory to create
new objects but there is none available (or it is simply denied more
memory).
The problem is that is not freeing the memory of unused objects.
The server on we are using has 8GB of RAM. The crash usually occurs around
the 2GB. We have identified some code where this memory allocation occurs.
It is in the createLine method in the PurchLine table.
Is there a way to keep the memory usage constant or to free the memory?
Has anybody found a way around this?
Thanks
Anton
We have some code in Axapta 3.0 SP3 that generates purchase orders.
Because we are creating alot at a time, Axapta eventually runs out of
memory
and then finally crashes. We get a 'Smartheap library' error message when
running two tier and an 'AOS has lost the connection' error message when
running three tier. It seems that the kernel is requesting memory to create
new objects but there is none available (or it is simply denied more
memory).
The problem is that is not freeing the memory of unused objects.
The server on we are using has 8GB of RAM. The crash usually occurs around
the 2GB. We have identified some code where this memory allocation occurs.
It is in the createLine method in the PurchLine table.
Is there a way to keep the memory usage constant or to free the memory?
Has anybody found a way around this?
Thanks
Anton