memory problems

Hi,

I've been running a program that I wrote to accept signals from
another machine and present the appropriate stimuli. After
about an hour (quite consistently) of continuous running, the
program kicks out and MATLAB gives me the standard "out of
memory" message. It always crashes on a line that makes a
call to a Psyctoolbox function. I realize this doesn't necessarily
mean anything, but I was just wondering if anyone has had
similar problems? I haven't yet been able to find any memory
leaks in the code that I've written (eg, i haven't failed to close any
windows that I open offscreen, etc.)

Thanks in advance for any help,

-mike
Most likely the playsnd bug of Matlab. Search the forum for problems
with playsound for more explanation. In the Files-Section of the forum
you'll find a file "MatlabFixedSoundStripped.zip" which should fix the
problem. Read the included Readme carefully.

This file was sent to Mathworks years ago as a bugfix for inclusion
into Matlab but apparently never made it into any official release :(
-- Matlabs sound driver for Windows is broken since at least 2002,
causing memory corruption, leaked memory, crashes and other
malfunctions. The cause is a race-condition, timing dependent, so some
people are lucky and the broken driver just works for them by accident.

Due to copyright restrictions it's not possible to bundle it with PTB.

good luck,
-mario


--- In psychtoolbox@yahoogroups.com, "amhaun01" <amhaun01@...> wrote:
>
> Hi-
>
> I'm using the beta version on a windows system;
>
> I'm going crazy trying to figure out why the virtual memory is filling
> up as I run blocks of a simple experiment; after each trial I close
> textures that have been made for that trial; and i clear the snd
> function; at the end of each block, all variables are cleared from the
> workspace;
>
> after a couple of blocks the sounds stop working (i've had to stick
> them all in try-catch loops); then, the next block that starts, when
> the stack of stimuli (in a .mat file) gets loaded, i get "out of
> memory", and there's nothing I can do but restart matlab. is there a
> cache somewhere that can be cleared or a buffer flushed, that i'm
missing?
>
> thanks-
> -andrew
>