Search the web
Sign In
New User? Sign Up
psychtoolbox · Psychophysics Toolbox
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Click here for the latest updates on Groups Message search

Messages

  Messages Help
Advanced
Re: Efficient Memory Use for Movies   Message List  
Reply Message #122 of 11283 |
>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.




Mon Apr 10, 2000 9:16 pm

denis@...
Send Email Send Email

Attachment
%SCREEN.mex.SIT
Type:
application/applefile
Attachment
SCREEN.mex.SIT
Type:
application/x-stuffit
Message #122 of 11283 |
Expand Messages Author Sort by Date

... 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...
Denis Pelli
denis@...
Send Email
Apr 10, 2000
9:16 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help