Can't initialize OF window when monitor is disconnected

Hello,

I’m using oF 0.8.0 on a mac mini running osx 10.7.5 with screen sharing enabled.
If I have a monitor attached everything works as expected, but the monitor is disconnected
and I run the application through screen sharing I get a EXC_BAD_ACCESS signal.
This happens when calling glfwInit():

  
  
if(!glfwInit( )){  
		ofLogError("ofAppGLFWWindow") << "couldn't init GLFW";  
		return;  
	}  
  

and in the console I see:

  
  
warning: Could not find object file "/openFrameworks/GLUT/OF_CUSTOM_GLUT/libForeground.a(macx_foreground.o)" - no debug information available for "/Users/mcast/Code/GLUT-ToPost/macx_foreground.m".  
  
Unable to access variable "requestedMode"  
  

I’d like to use oF without the screen attached. Is that possible ?
If so, how ?

Thank you

try using a glut window, in main:

  
  
#include "ofAppGlutWindow.h"  
  
int main(){  
    ofAppGlutWindow window;  
    ofSetupOpenGL(&window,1024,768,OF_WINDOW);  
...  
  

Thanks Arturo!
Works great!