Notifications
Clear all

[Closed] garbage cleaning Question

I get a lot of times an error message, when using scripts (and i use them a lot)… something about problem encountered during garbage cleaning …

what is it ? i assume it is something that has to do with memory usage … but how can i override it ? or is there a way to manually clean that garbage before executing scripts and doing so to prevent script crashes ??

5 Replies

‘gc()’ will clean the garbage for you, just type it in the script command line on the bottom left.

you can use gc()
sometimes it doesnt clean correctly so i use

for i = 1 to 100 do
(
try (gc())
catch()
)

Ok … thanks guys for the fast reply…

But can someone explain me what is that garbage, and WHEN will I must assume a problem (e.g. script crash) is likely to accure ??

(P.s. – can i try this little command also on my appartmant ?? )

if im not making a mistake whenever you create sth that uses memory it is possible that the address of that object(array, mesh, …!) is still reserved(or even lost). you need to manually free this space.
thit is a short description.Find more in C++ programming language, read some articles about pointers and memory allocation.
forgive me if my ENG is terrible!
best wishes.

Try increasing your heapsize variable. Presently the default is 7.5 megabytes of heap memory. If you are getting problems, then bumping up the size will help alot. For instance:

heapsize = 25000000