>I've created a 20-frame random-dot movie that is copied from the off-screen
>window to the on-screen window. I need to show this movie across several
>hundred trials. However, after approximately 10 trials (that is, 200
>transfers from off-screen to on-screen), I receive an 'out of memory' error.
>I can resolve this memory error by executing a 'clear mex' statement every
>so often, but 'clear mex' disrupts the flow of the experiment. Is there
>another way to clear memory in the off-screen window?
>
>Thanks,
>
>Nestor
dear nestor
this is a common occurrence. I'm guessing that on each trial you're
allocating 20 new offscreen windows, and not closing the old ones. Each
new set of offscreen windows eats up space and eventually you run out
(after allocating 200 offscreen windows). One side effect of "clear mex"
is to close all your windows. You can solve this problem, without using
"clear mex", by closing your 20 windows after each trial, or, if you
prefer to save the opening &closing time, you could reuse the same set on
every trial.
let us know if this works
best
denis
p.s. the latest SCREEN.mex (enclosed), not yet released, tries to help in
this situation by giving a more helpful error message when it reports
that it's out of memory.