Hello,

i tried your advice, but nothing changed. The code now looks like this

DFBCHECK(dfb->CreateSurface( dfb, &sdsc, &window_surface ) );
printf("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!");
DFBCHECK(dfb->CreateImageProvider( dfb,"dfblogo.png",&provider ));
printf("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$");
DFBCHECK(layer->CreateWindow( layer, &desc, &window ) );
printf("=================================================");
DFBCHECK(window->GetSurface( window, &window_surface) ); // PROBLEM
printf(".......................................................................");
provider->RenderTo( provider, window_surface, NULL );
window_surface->Flip( window_surface, NULL, 0 );
provider->Release( provider );

Greetings from Dresden : )

> -----Ursprüngliche Nachricht-----
> Von: "Nikita Egorov" <nik...@gmail.com>
> Gesendet: 02.04.09 11:59:13
> An: Tu Duong Manh <tu...@web.de>
> CC: directfb-users@directfb.org
> Betreff: Re: [directfb-users] simple problem with layer,window,surface.  
> especially window->GetSurface


> What for you commented the line layer->SetCooperativeLevel() ?
> 
> You must do calls in followed sequence (pseudo code)
> 1 window = dfb->CreateWindow().
> 2 window_surface = window->GetSurface()
> 3 provider->RenderTo(window_surface)
> 
> Otherwise you should return to source of df_window.c and remove
> needless things step by step.
> 
> 2009/4/2 Tu Duong Manh <tu...@web.de>:
> 
> > Hello,
> >
> > i just try to unterstand how to create an window. I started with comparing 
> > different examples, which included windows.
> > After that i started to write this code. When i try to start the 
> > application, it always shows me an "Caught signal 11"-error, so i
> > tried to debug. Then i found out, that the 
> > printf("=================================================");  still works,
> > but at DFBCHECK(window->GetSurface( window, &window_surface) );
> 
> 
> -- 
> Best Regards
> Nikita Egorov
> nik...@gmail.com
> nik...@varma-el.com
> 


________________________________________________________________________
Neu bei WEB.DE: Kostenlose maxdome Movie-FLAT!
https://register.maxdome.de/xml/order/LpWebDe?ac=OM.MD.MD008K15726T7073a

_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to