On 16.05.2010 06:56, Qzi er wrote:
what's the deference between  weak reference and hard reference ?

I can't understande the wiki below !

http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/C%2B%2B/Using_Weak_References

Is there other core code show  what is weak distinguish  hard ?

Any existing "hard" reference will prevent that the object will be destroyed. A weak reference will not do that, it just gives access to the object without controlling its lifetime. Instead of that it will "automatically" becom "empty" once the object has been destroyed as soon as all "hard" references to it have been cleared or destroyed.

Regards,
Mathias

--
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to