ÎÜñ|‹ø\/\/ñ [ÐëÞrëçã†ëð]'s Blog

Amit Bahree's insight into stuff...

News

And God said "Let there be light". But then the program crashed because he was trying to access the 'light' property of a NULL universe pointer.

blog roll

calendar

intersting finds

reading

techy finds

Browse by Tags

All Tags » .ms.net.fundas (RSS)
Why do app domain recycle (when you don't want them to)
Well, if you have ever wondered, Tess has a great post listing out the various reasons why. Well worth a read.
Writing High-Perf. Managed Apps?
If you are writing high-perf. managed applications, all the old-world advice from the days of good old COM is still valid. But you do need to think of a few other things such as how the CLR JIT would change things, or the Exception Handling, or Threading and syncing up, or possibly the GC and Allocation Profiles? While this MSDN article is old (now), it...
Exception Management in Threads
Exception Management is a topic near and dear to me personally, primarily because of the lack of understanding of most developers (that I have come across). There is an interesting change in the .NET 2.0 CLR on how it manages unhandled exceptions in a thread. If you write multi-threaded apps then this is important for you to understand. If you don't write...
Execution Context
It is quite interesting to see how many people don't understand the basics of threading, while it is a difficult topic (especially to debug), and it is not the silver bullet for all the problems, but it sure is quite handy for certain things. With the inevitable shift to multi-core CPU's and the release of Vista to take better opportunity of these extra...
System.Transactions and Timeout
Cross posting from All about Interop ; System.Transactions has two timeout values that you can specify in configuration files. The default timeout for System.Transactions transactions is 1 minute. You can set it in either app config, web config, or machine config. (You can also set the timeout for a particular transaction programmatically within the application...
Secure Startup Volume Encryption in Vista
It has been long overdue and now its finally present. Vista has something called the Secure Startup Volume Encryption which will work on computers with the Trusted Module Platform (TPM) chip. Here, all except the bare minimum of the boot volume is encrypted and at boot time the TPM transparently allows access to the drive. If someone either removed the hard...
CLR: Under the Hood
The CLR team has a couple of slides from their roadshow where they talk about two tracks, one discusses what happens insight the CLR, if you have some of the books recommended in the presentation, none of this would be new to you. It covers things like the IL which is the abstract representation of an execution semantic and how that is represented using...
Which encoding is better for webservices?
There are two options when it comes to encoding in the context of webservices, e.g. .NET and Weblogic use document literal encoding while IBM and other vendors (Java) use RPC encoding. What is the difference and which one is better for which scenarios? Also, how easy is it to switch between the two? Well for those new to webservices, there are two options...
Web Services are not distributed objects
Werner Vogel, CTO of Amazon.com has an article which was published a few months ago where we talks about the misconception of how most people think that web services are distributed objects. Here is an excerpt from the article. The hype surrounding Web services has generated many common misconceptions about the fundamentals of this emerging technology. Web...
Examination of Data Structures in .NET 2.0
You might have seen this already, if not, MSDN has a six-part article extensively examining the data structures in .NET 2.0 covering the usual suspects and then some not-so-usual unless you have written some compilers such as BST’s, graphs, red-back trees, etc. Quite an interesting read when you have some time.
.NET GC Bug on Win2K with more than 2GB Memory
One of my colleagues, Jim Tallant, encountered a problem with Win2k Server, running in an Application Center environment, where very high CPU cycles threatened to bring down the server farm. All servers in the farm showed high CPU utilization (60 to 70%) whereas they normally run in the 15 to 20% range. We determined that this high CPU consumption was caused...
HTTP Modules and HTTP Handlers
ASP.NET has a pretty interesting HTTP runtime architecture if you have ever dug into the covers. The basic run-time support has API's as powerful as ISAPI (in IIS). ASP.NET offers IHttpHandler and IHttpModule interfaces that offer you similar functionality. I will get into each one in a little bit of detail, but at a high level IHttpHandler is analogous...
VS.NET 2005 ClickOnce Review
I was playing with ClickOnce which is new in Visual Studio 2005 and thought it was pretty cool. Basically, ClickOnce is a deployment technology that enables self-updating Windows applications that can be installed and run with minimal user interaction. ClickOnce applications can be self-updating; they can check for newer versions as they become available...
Update: Change in C# 2.0 and Initialising static fields correctly
If you recall the previous post on instantiating static fields , there seems to have been a flurry of activity at Microsoft. As Peter Hallam writes , it made sense to improve the perf. for the static field initialisers and this you should see in Beta2 of Whidbey. The main issue here as Peter explains is if you have a field initialiser for a static field...
Quiz: Initialising static fields correctly
Brad Adams has an interesting post on this blog, but before you go and read it, take a crack at it here and let me know what your answer is. There is an interesting thread going on there and I honestly cannot figure out the “bug” and being the impatient fool I am, I need to know the answer! :) A dev on the team recently found a bug in Whidbey...
Fastest way to build 10K records on a Device?
Tom Krueger is a Microsoftie and spends a lot of his time dreaming up and working on Smart Clients. He was a very quirky and informative post on the Fastest way to build 10,000 records on a Device? Tie one end of a piece of string to the WiFi antenna, if your device has one, and tie the other end to a tin can. Enumerate the 10,000 records on your desktop...
Yes, the GC *can* leak memory - there I said it!
Shawn Van ness has an excellent article, that spells out how event listeners can cause memory leaks, yep even when running in managed code. Steve Main sums it up pretty well: The main issue is the “lapsed listener” problem. This occurs when objects subscribe to events and subsequently get out of scope. The problem is that the event subscriber...
Exceptional Condition Handling in SQL Server 2005
This is my second part of the SQL Server 2005 posts; you can read the first part on Hosting the .NET runtime in SQL Server. In the CLR certain conditions such as out of memory, stack overflow, etc can bring down an app domain (or process), this cannot be allowed in SQL Server 2005 when latter is acting has a host (for the CLR) as it will affect reliability...
Exception Management in .NET
Well, this was long overdue. I had promised to upload my article that won a contest by osnews.com. I finally found a little time to upload it here, though the formatting is still a bit screwed especially on the code snippets. You can read the article . If you would like a pdf version of the same let me know and I can either put it up here or email it to...
Developer's Perspective on WinFS
If you don't know what Wings is, then read the earlier part of this series. There have been a number of changes since Part 1 and this part, namely the release of a new Longhorn build. For the Assemblies you will usually need the System.Storage.WinFS.dll assembly in most of your projects. It represents the basic interfaces and classes (for example, Item and...
Writing Windows-Shell Extensions using .NET
Dino writes an interesting article on how to write shell extensions in managed code. He also provides a brief overview of COM Interop covering both CCW (COM Callable Wrappers) and RCW (Runtime Callable Wrappers), which those of you who have had any experience with COM know has a fair amount of overheard and though is quite seamless to use, it is not to be...
White-Box testing (a.k.a Glass Box or Clear Box or Open Box testing)
This is part 3 of the testing-series of posts where I cover White-Box testing (inspired by Microsoft's upcoming Testing Series of good advise from PAG). You can check out the earlier post here . White-Box testing (Glass Box/Clear Box/Open Box testing) White box testing assumes that the tester can take a look at the code for the application and create test...
White Box Testing and Black Box Testing
This is really part II of my testing series (as I have become to call it) - I had an earlier post on Unit Testing . I recently had the opportunity to review some of the new stuff coming out of the Prescriptive Architecture Group at Microsoft and here is some of the interesting things proposed by them. When you are doing Functional Testing of your application...
No debugger in C#?
I don't get it. Anatoly discusses how he (along with other people he quotes) don't use the debugger in C# or any other managed code and letting the runtime find the exception and let it “deal” with it. Now I don't know these people and they could probably be correct in the context of the applications they write, but I don't agree with their viewpoint...
What makes good code good?
As Paul Dilascia discusses in his article in MSDN Magazine (most of which I am gonna mooch-off here), What is good code? Does good code mean that the program works as it is meant to without bugs? Well if that is your only criteria, then I don't think so, that is something that is expected. One also needs to look at it internally - as they say beauty is beneath...
More Posts Next page »