segmentationfault
Programmer
I have between approximately 1000-1500 lines of data which will be broken into as many as 75 charts. I have a macro which gets through about 50 or so charts and I get the very uninformative error message "Not enough memory." The error message is owned by Excel.
I have moved the code that creates the charts into its own module which must be executed on its own to eliminate overhead (this gained another 10 charts before running out of resources.) I am currently reading the Excel sheet while creating the charts - I considered loading all the range boundaries, titles, and format parameters into arrays and then using these to create the charts, but I'm not convinced this would save any resources (I lose the overhead of searching the sheet while creating charts, but I'm using resources to keep the parameters.)
When the macro is complete, if I try to manually add another chart, I get the same message about insufficient memory. System Monitor says that I have 170M memory allocated - 44M of swap file, 9M free physical memory. Windows is managing my swap file for me.
I'm really at a loss, and not even sure if throwing more RAM at the box will fix it. Any ideas?
I have moved the code that creates the charts into its own module which must be executed on its own to eliminate overhead (this gained another 10 charts before running out of resources.) I am currently reading the Excel sheet while creating the charts - I considered loading all the range boundaries, titles, and format parameters into arrays and then using these to create the charts, but I'm not convinced this would save any resources (I lose the overhead of searching the sheet while creating charts, but I'm using resources to keep the parameters.)
When the macro is complete, if I try to manually add another chart, I get the same message about insufficient memory. System Monitor says that I have 170M memory allocated - 44M of swap file, 9M free physical memory. Windows is managing my swap file for me.
I'm really at a loss, and not even sure if throwing more RAM at the box will fix it. Any ideas?