List Info

Thread: Re-Initialising DirectFB -> FAILING




Re-Initialising DirectFB -> FAILING
country flaguser name
United States
2007-02-14 07:17:37
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.

I can make some changes to DirectFB by freeing some
structures as Shutdown
calls are made and I can almost get this model to work (but
not quite).

I was wondering if anyone was using this model of a single
application that
creates and destroys a DirectFB instance as it requires
one.
Hope you can help
Cheers
Dan

-- 
View this message in context: http://www.nabble.com/Re-Init
ialising-DirectFB--%3E-FAILING-tf3227203.html#a8964682
Sent from the DirectFB Dev mailing list archive at
Nabble.com.


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: Re-Initialising DirectFB -> FAILING
country flaguser name
Finland
2007-02-14 08:10:31
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().

-- 
Ville Syrjälä
syrjalasci.fi
http://www.sci.fi/~syrjal
a/

_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: Re-Initialising DirectFB -> FAILING
country flaguser name
United States
2007-02-14 08:25:49


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().
> 
> -- 
> Ville Syrjälä
> syrjalasci.fi
> http://www.sci.fi/~syrjal
a/
> 
> _______________________________________________
> directfb-dev mailing list
> directfb-devdirectfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
> 
> 
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.

Cheers
Dan

-- 
View this message in context: http://www.nabble.com/Re-Init
ialising-DirectFB--%3E-FAILING-tf3227203.html#a8965774
Sent from the DirectFB Dev mailing list archive at
Nabble.com.


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
Re: Re-Initialising DirectFB -> FAILING
country flaguser name
Finland
2007-02-14 09:18:45
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ä
syrjalasci.fi
http://www.sci.fi/~syrjal
a/

_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: Re-Initialising DirectFB -> FAILING
country flaguser name
United States
2007-02-14 09:50:57


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ä
> syrjalasci.fi
> http://www.sci.fi/~syrjal
a/
> 
> _______________________________________________
> directfb-dev mailing list
> directfb-devdirectfb.org
> 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

Cheers
Dan
-- 
View this message in context: http://www.nabble.com/Re-Init
ialising-DirectFB--%3E-FAILING-tf3227203.html#a8967527
Sent from the DirectFB Dev mailing list archive at
Nabble.com.


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev
VideoProvider (Was: Re: Re-Initialising DirectFB -> FAILING)
country flaguser name
Hungary
2007-02-14 09:52:42
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.
>   
well its a bit offtopic, so I've changed the subject.

if you Release() a VideoProvider, and then try to create it
again,
that will also fail. (at least with ffmpeg it does - from
-extras)

I've tracked further the problem with ffmpeg and I have a
working
solution, but it's a big ugly hack, so I wont post it.

But there's clearly a bug in both cases.

Thanks,

Zoltan NAGY,
Software Engineer


_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

Re: Re-Initialising DirectFB -> FAILING
country flaguser name
Finland
2007-02-14 13:19:14
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ä
> > syrjalasci.fi
> > http://www.sci.fi/~syrjal
a/
> > 
> > _______________________________________________
> > directfb-dev mailing list
> > directfb-devdirectfb.org
> > 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ä
syrjalasci.fi
http://www.sci.fi/~syrjal
a/

_______________________________________________
directfb-dev mailing list
directfb-devdirectfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/
directfb-dev

[1-7]

about | contact  Other archives ( Real Estate discussion Medical topics )