# New SCREEN.mex (again)

**URL:** <https://psychtoolbox.discourse.group/t/new-screen-mex-again/643>\
**Category:** Uncategorized\
**Created:** [April 29, 2002, 1:48am UTC](https://psychtoolbox.discourse.group/t/new-screen-mex-again/643 "2002-04-29T01:48:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![denispelli](https://avatars.discourse-cdn.com/v4/letter/d/cdc98d/32.png) [@denispelli](https://psychtoolbox.discourse.group/u/denispelli)\
**Post date:** [April 29, 2002, 1:48am UTC](https://psychtoolbox.discourse.group/t/new-screen-mex-again/643/1 "2002-04-29T01:48:33Z")

</div>

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

> \>Zoran Popovic \<[zoran@...](mailto: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/](http://stuffit.com/expander/)
