PDA

View Full Version : Memory problem


marijan.marsic
2009-04-10, 08:35 AM
I have a script that inserts Xref's, saves Drawing, then detaches Xrefs, loads new layout, inserts new Xrefs, saves Drawing....

All this happens about 10 times...



After 5-6 time, I get out of memory error... and my Process manager says that acad.exe is using aroun 1.5 Gb of my ram!



Is there a command within Lisp that can purge unused data from RAM so my lisp can work normaly?

ccowgill
2009-04-10, 01:55 PM
I have a script that inserts Xref's, saves Drawing, then detaches Xrefs, loads new layout, inserts new Xrefs, saves Drawing....

All this happens about 10 times...



After 5-6 time, I get out of memory error... and my Process manager says that acad.exe is using aroun 1.5 Gb of my ram!



Is there a command within Lisp that can purge unused data from RAM so my lisp can work normaly?try searching (gc) in the developer help.