Hi Tomasz.
They are both useful.
Suppose you have two applications using the same window.
app 1 creates the window, so the ref counter goes up one.
app 2 gets a reference (e.g. AddRef) to the same window, so ref counter
is now 2.
Now, if app 2 wants to get rid of the window, ->Release will not work,
since ref count is still at 1 - in principle, app 2 does not know if
there are other applications which have a ref counter so it should not
do ->Release for those. In this case, you do ->Destroy. This will send a
message too so other apps are informed.
In the normal case app 1 and app 2 do a ->Release so the ref count drops
to 0 and the window is released.
hth
Niels
[email protected] wrote:
I am directFB greenhorn, but I thing to free up memory You should invoke
window->Release( window );
Could someone explain what for use Destroy()?
----------------------------------------------------------------------
Nie dla nich ciepla praca za biurkiem.
Sprawdz >>> http://link.interia.pl/f2383
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users