# cant open window

**URL:** <https://psychtoolbox.discourse.group/t/cant-open-window/1358>\
**Category:** Uncategorized\
**Created:** [July 27, 2006, 7:10pm UTC](https://psychtoolbox.discourse.group/t/cant-open-window/1358 "2006-07-27T19:10:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [July 27, 2006, 7:10pm UTC](https://psychtoolbox.discourse.group/t/cant-open-window/1358/1 "2006-07-27T19:10:30Z")

</div>

cant open window
Hello-

  

I am wondering if someone might be able to help.&nbsp; I&nbsp; am trying to open a window, and every time my computer comes up to a blank screen.&nbsp; I am unable to type in the command window, even though it should be active in the background.&nbsp; Anyway, to diagnose the problem, we hooked up a 2nd monitor and ran the following code:

  

  

% Test program so my window doesnt disappear  
 &nbsp;

try

&nbsp;&nbsp;&nbsp; w=Screen('Openwindow', 1);

&nbsp;&nbsp;&nbsp; Screen('Close',w)  
&nbsp;&nbsp;&nbsp;  
 catch  
&nbsp;&nbsp;&nbsp; Screen('CloseAll')  
&nbsp;&nbsp;&nbsp; rethrow(lasterror)  
&nbsp;&nbsp;&nbsp;  
 end  

  

  

The screen on the external monitor went blank, and we received the following error in the command window:

  

  

INTERNAL PSYCHTOOLBOX ERROR  
 &nbsp;&nbsp;&nbsp;&nbsp; \>error:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PsychError\_internal  
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; general description:&nbsp; Unspecified error, probably a Psychtoolbox bug  
 &nbsp;&nbsp;&nbsp; specific description: Unrecognized window type  
 &nbsp; module name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Screen  
 &nbsp;&nbsp;&nbsp; subfunction call:&nbsp;&nbsp;&nbsp;&nbsp; CloseAll  
 &nbsp; file name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /Users/kleinerm/projects/Psychtoolbox/trunk/PsychSourceGL/Source/Comm \>on/Screen/PsychWindowSupport.c  
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PsychCloseWindow  
 &nbsp; line number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 743  
??? (null)  
  
Error in ==\> seminar\_PTB\_2 at 14  
&nbsp;&nbsp;&nbsp; Screen('CloseAll')

  

  

Any ideas?&nbsp; I am running the 1.0.6 Beta version of PTB, but this also occurred in the stable version.&nbsp; My MatLab version is: 7.2and my OSX is:10.4.6

  

Thank you in advance for your comments/help.

  

Joe

  

 \>---------------------------------------------------------------------------------------------  
 Joseph Carroll, Ph.D.  
The Medical College of Wisconsin  
Department of Ophthalmology  
925 North 87th Street  
Milwaukee, WI 53226-4812  
  
Phone:&nbsp; (414) 456-2052  
FAX:&nbsp; (414) 456-6690  
E-mail:&nbsp; jcarroll@...  
  
http://www.mcw.edu/ophthalmology/faculty/jcarroll.htm

 \>---------------------------------------------------------------------------------------------
