Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Reference counting
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Component Object Model=== Microsoft's [[Component Object Model]] (COM) and [[Windows Runtime|WinRT]] makes pervasive use of reference counting. In fact, two of the three methods that all COM objects must provide (in the [[IUnknown]] interface) increment or decrement the reference count. Much of the [[Windows Shell]] and many Windows applications (including [[Microsoft Internet Explorer|MS Internet Explorer]], [[Microsoft Office|MS Office]], and countless third-party products) are built on COM, demonstrating the viability of reference counting in large-scale systems.{{Citation needed|date=October 2022}} One primary motivation for reference counting in COM is to enable interoperability across different programming languages and runtime systems. A client need only know how to invoke object methods in order to manage object life cycle; thus, the client is completely abstracted from whatever memory allocator the implementation of the COM object uses. As a typical example, a [[Visual Basic]] program using a COM object is agnostic towards whether that object was allocated (and must later be deallocated) by a C++ allocator or another Visual Basic component.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)