New SCREEN.mex (again)

** THIS REPLACES THE PREVIOUS MESSAGE, 946, WHICH WAS IDENTICAL TO
THIS ONE, BUT CONTAINED A CORRUPTED ENCLOSURE. **

>Zoran Popovic <zoran@...> writes:
>I have encountered problems with the recently updated SCREEN.mex.
>After installing the new version I have not been able to run my old
>m-files. I have included the relevant code from my m-file and the
>resulting error message from the new screen.mex version. Everything
>works fine with the old SCREEN.mex installed.
>-----------------------------------------
>[Abbreviated program - denis]
>window=SCREEN(whichScreen,'OpenWindow',[],[],32);
>emptyWindow=SCREEN(whichScreen,'OpenOffscreenWindow')
>
>error message:
>??? SCREENOpenOffscreenWindow.c line 343: new offscreen window has
>zero-length color table
>Error in = "MatlabToolboxPath":PsychToolbox:PsychBasic:SCREEN.mex
>-----------------------------------------
>Any suggestions?
>Many thanks in advance,
>Zoran
>Zoran Popovic, M.Sc., Ph.D. student
>Dept. of Ophthalmology Goteborg University 43180 Molndal Sweden


dear zoran

david brainard reported the same error. It seems that we were being
overzealous in error checking. [A zero-length color table seems to be
normal when one asks NewGWorld to create a new device.] So I've
disabled the new error check that was tripping you up, and hopefully
you'll be happy with this new version. Please let us know whether
this new version works.

(Note that this version REQUIRES that the accompanying files all be
installed together in your PsychBasic folder.)

best

denis

ps You'll need stuffit expander to unpack the enclosure
http://stuffit.com/expander/