On Wed, Feb 14, 2007 at 07:50:57AM -0800, Daniel Laird wrote: > > > > Ville Syrjälä wrote: > > > > On Wed, Feb 14, 2007 at 06:25:49AM -0800, Daniel Laird wrote: > >> > >> > >> > >> Ville Syrjälä wrote: > >> > > >> > On Wed, Feb 14, 2007 at 05:17:37AM -0800, Daniel Laird wrote: > >> >> > >> >> I have wriiten an applications that calls > >> >> DirectFBCreate() > >> >> It then releases the top level interface. > >> >> > >> >> It then repeats (so calls DirectFBCreate again. > >> >> > >> >> This fails. The master application never exits (it just reinitialises > >> >> DFB > >> >> as required). > >> >> The problem it shows is that it will not load a gfxdriver that I have > >> >> written. > >> > > >> > Call DirectFBInit() before DirectFBCreate(). > >> > > >> Sorry, poorly written email. I do actually call DirectFBInit() first and > >> then DirectFBCreate() as usual. > >> > >> I then release top level interface and then call DirectFBInit again, > >> followed by Create(). > >> > >> This is all done without exiting the application. > > > > Hmm, it should work, or at least it used to work at some point. > > > > -- > > Ville Syrjälä > > [EMAIL PROTECTED] > > http://www.sci.fi/~syrjala/ > > > > _______________________________________________ > > directfb-dev mailing list > > [email protected] > > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > > > > After more investigation I can make this work if I do the following > DirectFBInit > DirectFBSetOptions > DirectFBCreate > Release > DirectFBCreate > Release > ... > > It seems it is the multiple calls to DirectFBInit from a non exiting > application that is the problem
Calling DirectFBInit() every time works here with mplayer -vo dfbmga. In fact not calling DirectFBInit() used to break things in the past. Have you tried it with a very simple app which does nothing more than the Init()->Create()->Release()? -- Ville Syrjälä [EMAIL PROTECTED] http://www.sci.fi/~syrjala/ _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
