I've been testing creating charts in teechart for PHP using a while loop to create multiple charts via a function:
while () {
create_my_chart();
}
After 14 iterations of this I'm getting the following error:
"Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 800 bytes) in tchart\sources\GraphicsGD.php on line 602"
This implies that teeChart is not freeing memory correctly but I wondered if there is anything I can do about it?
Your allowed memory useage seems to be only 64MB. This is very small!
Change it in the php.ini
or do ini_set('memory_limit','1G')
in the script to allow 1 GB memory. And test again.