• 0

.NET Framework


Question

Recommended Posts

  • 0

This .NET Framework will be a pain in the A$$ at first, just like any update that needs bringing into the Windows Community, all Microsoft are trying to do is get it out to almost everyone in the world who owns a Microsoft PC. So soon everyone will have .NET Framework. Of course it's going to be a rough ride at first. Just like anything else ?_?

  • 0
This .NET Framework will be a pain in the A$$ at first, just like any update that needs bringing into the Windows Community, all Microsoft are trying to do is get it out to almost everyone in the world who owns a Microsoft PC. So soon everyone will have .NET Framework. Of course it's going to be a rough ride at first. Just like anything else ?_?

Quite true. Aside from the whole getting users to download it thing, there are other pains that go with .NET for the time being.

For one thing, it's not QUITE as Windows version-neutral as Microsoft would like everyone to believe. Some of my users using XP Home have had some significant problems with .NET code that runs perfectly fine on XP Pro.

And for another, there are a lot of really weird crashing bugs that pop up for no particular reason. For example, changing a selection in a list view will always throw an ArgumentOutOfRangeException. There's nothing actually wrong (you can catch the exception and discard it, and everything will work as it should), but it will still crash the app.

Once the minor stuff like that gets worked out, .NET will be a lot less painful.

--

Danny Smurf

  • 0

Danny, thats also quite true. But what I think Microsoft is trying to do, is get programmers to start getting used to the .NET functionality and the way .NET works, all for the release of Longhorn. Which I'm pretty sure will be using .NET Framework in it's coding. So I guess what Microsoft are trying to do is say "Get ready, look at whats coming"

  • 0
I KNOW that Longhorn's version of Explorer.exe is a .NET app. Play with the latest build and when it crashes, an unhandled .NET exception is displayed. Cool!

I think that's just the CLR debugger that has been integrated along with the normal JIT debugger. Try crashing another normal Win32 app and see if the same message appears as for the Explorer crash.

  • 0
I KNOW that Longhorn's version of Explorer.exe is a .NET app. Play with the latest build and when it crashes, an unhandled .NET exception is displayed. Cool!

Well, my suspicion is that explorer.exe is still same C++ code just with the "Use Managed Extensions for C++" option ticked on build... or maybe I'm totally wrong!

  • 0
I think longhorn is just an XP makeover right now, not hardly enough code to call it a .NET OS

It hardly has any managed code... to be a .NET OS, it should have at least 50%+ managed code... which it clearly doesn't.

But, we still see some shipping Microsoft apps with managed code- eg UUDI, XP Media Center, the Outlook BCM... which is pretty encouraging. And since WinFS is supposed to be based on Yukon, which is supposed to use .NET v2.0, then maybe WinFS will be written in managed code too!

  • 0
It hardly has any managed code... to be a .NET OS, it should have at least 50%+ managed code... which it clearly doesn't.

YET.

Don't forget, it's not even in the beta stage yet. And we don't know how much managed code is really in there. It may just have "the "Use Managed Extensions for C++" option ticked on build," but that would indeed make it managed code, since that will compile it to run on the .NET Framework. And that's all it takes to make a lot of programs managed. We have no idea how much of that Microsoft has done.

--

Danny Smurf

  • 0
And for another, there are a lot of really weird crashing bugs that pop up for no particular reason. For example, changing a selection in a list view will always throw an ArgumentOutOfRangeException. There's nothing actually wrong (you can catch the exception and discard it, and everything will work as it should), but it will still crash the app.

Hey Danny Smurf,

I read your post and checked out that behavior. The reason you're getting that exception is because the list view item that is being deselected is firing the event, as well as the item that is being selected. Just test the SelectedIndices.Count before you do anything.

private void listView1_SelectedIndexChanged(object sender, System.EventArgs e)
{
    if( listView1.SelectedIndices.Count < 1 )
        return;
    // other code

That is probably expected behavior since the event is firing when the index changes, just once for each item being selected and deselected.

Cheers!

  • 0
Having that option ticked doesn't mean it is managed code - it could see be using traditional C++, and not taking any advantages of the Managed Extensions.

It doesn't matter if it's written in "traditional" or not. Ticking that option compiles it to run on the Framework. The language it was actually written in is irrelevant. Managed code is "managed" because the CLR "manages" its execution.

--

Danny Smurf

  • 0
I read your post and checked out that behavior. The reason you're getting that exception is because the list view item that is being deselected is firing the event, as well as the item that is being selected. Just test the SelectedIndices.Count before you do anything.

Thanks for that. That's... rather odd behaviour. I'd think that the event should only fire once, since the selected index is only changing once (one unselect + one select = one change). I'll give that code you posted a try. Thanks. :)

--

Danny Smurf

  • 0
how many people actally have the framework? I mean it wasn't in windows xp but it came on on xp SP1 and it wasn't on windows 2000 sp3. How many people actually have the framework? If microsoft wants people to programme with .NET then they have some work to do...

I have it, it is on windows update, and I always install it after a clean install :p

2k3 is the only OS now to come with it atm :p

Before .net was final, the framework was 34mb, so they have improved it a lot :p

Test: .net framework

  • 0
It doesn't matter if it's written in "traditional" or not. Ticking that option compiles it to run on the Framework. The language it was actually written in is irrelevant. Managed code is "managed" because the CLR "manages" its execution.

--

Danny Smurf

I don't agree - if you are still doing all the memory allocation and other low-level activities yourself, then the CLR does much less and it's not really managed code.

  • 0
I don't agree - if you are still doing all the memory allocation and other low-level activities yourself, then the CLR does much less and it's not really managed code.

But you're not actually doing the memory management yourself any more. When a C++ project is compiled with managed extensions, it's subject to garbage collection just like every other program running on the Framework. The new calls allocate memory from the managed heap, just like new (or equivalent) does in all .NET languages, and the delete calls do the same thing as the Dispose method... everything except the actual memory reclamation.

As for the other "low-level activities," you can do most of them yourself in any .NET language, using Interop. Just because the ability to do low-level things is there does not mean that the app is no longer managed.

--

Danny Smurf

  • 0

From MSDN:

Compiling with the /clr option does not alter the semantics of an existing C++ program. For example, C++ classes do not become garbage collected or seamlessly interoperate with Visual Basic unless they are modified. Such features are only provided for Managed Extensions classes
  • 0

Not unless they've changed its classes to __gc classes or wrapped them in __gc classes, and made other modifications. I would think it would probably be easier and a better idea just to rewrite explorer and other shell features from scratch. It would more than likely eliminate some unknown security problems with the legacy code.

Edited by weenur
  • 0
Not unless they've changed its classes to __gc classes or wrapped them in __gc classes, and made other modifications. I would think it would probably be easier and a better idea just to rewrite explorer and other shell features from scratch. It would more than likely eliminate some unknown security problems with the legacy code.

*THWAPS his forehead* Of course, you're right. My bad. I forgot about switching the classes to __gc. Been spending a bit too much time in C# for the last year.

Which, unless I am mistaken, means that Explorer isn't managed code yet!

Well, we still don't know that, do we? I haven't seen the source code, and I'm willing to bet no one else outside of Microsoft has either. Maybe Microsoft has made all of the appropriate changes already, and Explorer is managed.

As for rewriting the shell from scratch... probably a good idea. Unlikely to happen. The shell isn't just explorer.exe. There are a lot of DLLs that go with the shell, which would also need to be rewritten. And since a good portion of the Windows API resides in those DLLs, changing or rewriting them breaks every app that depends on them (including any app that adds something to recent docs, any app which calls the Browse For Folder dialog, and any app that calls a SHGet function)... which is something I don't THINK Microsoft is going to do. They're including legacy graphics code for older apps in Longhorn, which means other legacy code (shell included) is probably staying as well, which probably means it's going to be impossible to completely scrap and rewrite any system-level components (shell included).

That is, unless Microsoft's got something huge up their sleeve that's going to fix the legacy problem.

--

Danny Smurf

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • They thought value of their goods would forever only drop like it used to and didn't account for sudden increase in price because of all the Ai hype. Tough luck Samsung, don't try to weasel this one out. Also American customer protection laws are a**. In Europe, you need to be compensated for a functioning product of same or better characteristics (not same price point as when it was originally bought!) if it can't be repaired and when you receive a replacement product your warranty starts from scratch because you received a different item than you previously had and old warranty thus cannot apply to it anymore. If your actual item was successfully repaired, warranty gets extended for the period the item was in service. If item is repaired to a significant extent, warranty also starts over from scratch because major part of it was replaced. Americans need to fight to get this kind of consumer protections because they are constantly getting screwed over.
    • Microsoft releases new Windows 11 Media Creation Tool with the latest updates by Taras Buria Patch Tuesday updates arrive every month, bringing users new features and security updates. To make sure customers have access to the most recent images, Microsoft also releases updates to the Media Creation Tool app, its official utility for Windows 11 installation. Today, the company pushed new ISOs to Media Creation Tool, allowing you to create images with the June 2026 Patch Tuesday updates. With the latest update, the Media Creation Tool now downloads KB5094126. It is Windows 11 version 25H2, build 26200.8655, which is also available via Windows Update. Note that the app itself remains on the previous version, which you can check in Properties > Details. The only change is that it now downloads a more recent Windows 11 build, so the only way to check is to download an ISO. The June 2026 Patch Tuesday update is a special release for Windows 11, as it brings a new performance profile to make the operating system more responsive and snappier when rendering various user interface surfaces, including the Start menu, quick settings, and more. It does so by spiking processor speeds for a brief moment, resulting in higher loads for a second or two. The so-called “Low latency profile” is rolling out gradually, but you can force-enable it with the ViVeTool app. Other changes include webcam improvements, Task Manager updates, shared audio support, and more. You can download the Media Creation Tool app from the official Microsoft website using this link. Besides MCT, Microsoft lets you download Windows 11 ISO as a file directly from the official Windows 11 website. However, you will need a third-party app to write it to your USB drive. Check out this guide if you want to know how to do that.
    • Louis Rossmann suing Samsung over "990 Pro SSD warranty scam" by Sayan Sen Back in 2023, if you recall, Neowin reviewer Robbie Khan had a dispute with Samsung over his 990 Pro SSD, which was rapidly losing its health. After significant back and forth, the tech giant had finally released firmware to "stop" the issue. Interestingly, its previous flagship at the time, the 980 Pro was also facing problems leading to two consecutive sets of firmware fixes. Three years later, it looks like a similar conflict has now broken out between tech repair entrepreneur YouTuber Louis Rossmann and Samsung, as it has escalated into a threatened lawsuit after the company allegedly refused to appropriately replace a failing 990 Pro SSD that remained under warranty. According to Rossmann, a 4TB Samsung 990 Pro NVMe SSD purchased for approximately $330 less than two years ago, began experiencing major hiccups and issues, even though he claims it had been operated under ideal cooling conditions. It was installed in a RAID 1 array and cooled by a heatsink and dual high-speed fans. However the drive reportedly started dropping out of the array, exhibiting controller-level failures that eventually became not useable in any meaningful way. Rossmann said Samsung’s support process was marked by delays and confusion from the very start. After initially contacting the wrong regional support channel, he was redirected to Samsung’s memory support division where he submitted detailed diagnostics, logs, and proof of purchase. Rossmann runs a repair company and owns an ACE Lab PC-3000 machine, which is a professional-grade data recovery equipment. As such, he had been confident in his diagnostics. Samsung even seemingly acknowledged that later. Regardless, Rossmann claims that his initial support ticket was automatically closed before a full 24-hour response window had elapsed, forcing him to reopen the case and resubmit documentation. The controversy however intensified further from here after Samsung accepted the drive for warranty evaluation but later returned it with a repair report stating that the drive had passed its testing and that the SSD had been verified as functional. Rossmann strongly disputed those claims citing that his own independent testing on PC-3000 showed write speeds reducing to as low as 40–60 MB/s before the drive failed entirely. Samsung subsequently informed him that the SSD had been reset and reflashed, passing internal stress tests. However, the company also stated that replacement units were unavailable due to an industry-wide memory shortage and suggested that a refund process could be initiated if further testing confirmed the fault. Thus, to settle, the company offered a refund of $330, the amount that was initially paid by him to make the purchase. Here, Rossmann pointed out the seeming hypocrisy of the tech giant as in how no Samsung drive was apparently allocated for warranty replacements, but they were abundantly available for retail sales especially when using business accounts. As you can see, Rossmann is indeed right, there are Samsung 990 Pro 4TB SSDs on Amazon currently for $950 (shipped and sold by first-party Amazon US itself), and they are also available on Samsung's own store too, albeit for an even higher price of $1100. Thus Rossmann argues that Samsung’s inability or unwillingness to provide a replacement while the same model remains available for purchase at significantly higher market prices reflects a failure to honor its warranty obligations. He has issued a formal 60-day notice and says he intends to file suit in Texas small claims court, asserting that companies should face greater costs for denying legitimate warranty claims than for fulfilling them. You can check out the full video titled "Samsung's 990 Pro SSD warranty policy is a scam; I'm taking them to court," at the link below. Source and image: Louis Rossmann (YouTube) As an Amazon Associate we earn from qualifying purchases
    • Was it too much to ask to show the icon in this article?
  • Recent Achievements

    • Week One Done
      davidbazooked earned a badge
      Week One Done
    • One Month Later
      Jamswaz earned a badge
      One Month Later
    • Week One Done
      Jamswaz earned a badge
      Week One Done
    • Rookie
      Marzoid went up a rank
      Rookie
    • Community Regular
      coch went up a rank
      Community Regular
  • Popular Contributors

    1. 1
      +primortal
      509
    2. 2
      PsYcHoKiLLa
      184
    3. 3
      +Edouard
      158
    4. 4
      Steven P.
      83
    5. 5
      ATLien_0
      75
  • Tell a friend

    Love Neowin? Tell a friend!