Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:53:58+00:00 2026-06-10T17:53:58+00:00

As I saw in Windows 8 for .NET developers session .NET deals with native

  • 0

As I saw in Windows 8 for .NET developers session .NET deals with native objects of the platform. And these objects support Pointer Counters. It was clear for me that there were managed objects which sits in the managed heap and unmanaged which we had to release in the finalize and dispose methods. As for now it’s not clear for me how should I deal with memory management in Windows Runtime. Can you give me an advice when I have to worry about managed/unmanaged resources? And how does memory management work in Windows Runtime in order to prevent my apps from resource leaking?

UPD:

I mean .NET Metro Profile

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:54:00+00:00Added an answer on June 10, 2026 at 5:54 pm

    The underlying WinRT interface is COM based. Every WinRT interface derives from IUnknown, its AddRef and Release methods implement reference count based memory management.

    This is however very well hidden, when you program a WinRT app then you use a language projection. For .NET and Javascript apps, the language projection is built into, respectively, the CLR and the Chakra engine. Which complete hide the implementation details, the WinRT interfaces are mapped to native language constructs. Including skillfully creating the illusion that COM supports generics and implementation inheritance. A somewhat reasonable guess is that the CLR projection uses COM interop support already built into the CLR but it is impossible to reverse-engineer this easily. If that’s accurate at all then finalizers are likely to make the IUnknown::Release() call.

    Right now it is very hard to get decent info about the low-level details, the Microsoft bloggers and SO posters are not talking, source code is not available and questions that touch on the subject are getting closed, like this one.

    As you can tell from Chen’s comment to that question, you are not supposed to be curious about it. If you are worried then consider programming in C++/CX. Which does a good job of hiding the glue. Or native C++ with the WRL library, which doesn’t. Both runtime environments where memory management is explicit. Microsoft invested a lot of resources in making C++ programming relevant again.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are developing an ASP.NET MVC web app that will be hosted on Windows
I've been looking at DLLs in windows, and I saw many DLLs that have
I think I've stumbled upon a bug in the .NET (or the native windows
I saw some websites that (for example): if you want to view your message
I saw the docs on the Instagram developers page. http://instagram.com/developer/endpoints/ But I want to
I saw that even by writing separate commands, we can combine two different types
I saw some html that displays the results of a PHP code just by
I am working to a VB.NET windows forms projet in .NET 1.1. And I
I Installed Microsoft's Asp.net MVC 2 using the Web PI (on Windows XP) but
I am very interesting in the dynamic language runtime of .net, and saw IronRuby/IronPython

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.