Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Technology   (RSS)

Technical Presentation Tip

I’m no Scot Hanselman , but even then I guess I can share at least one tip for delivering technical presentation that has worked very well for me. At the very beginning of your presentation always have a slide clearly calling out what the attendees will

How many heaps does the .NET Compact framework use

While discussing the memory architecture with an internal customer, he inquired about how many heaps .NETCF creates. I’m not sure how it might be helpful to users, but the answer is 5. This has been touched upon in some blogs and presentations (e.g. MEDC

.NET Compact framework GC Quantum

In my post When does the .NET Compact Framework Garbage Collector run I mentioned that one of the causes for starting a garbage collection is that 1 MB of data has been allocated from the last garbage collection. Essentially we keep a counter which is

Small Basic

Today my father in law started teaching my 4 year old daughter how to write in Bengali which is her native language. Below is the screen shot of her attempt to write অ আ ই , the first character is written by her teacher and the rest by her. This got me
Posted by abhinaba | 3 Comments
Filed under: , , ,

Back To Basics: Handling overflow in mark stage

This post is Part 7 in the series of posts on Garbage Collection (GC). Please see the index here. Let’s first recap the basic algorithm of the mark-sweep garbage collection . In C like pseudo code the algorithm looks like void GC() { HaltAllThreads();

Windows 7 rocks

Ok I know this blog is not about Windows but I thought I’d share the love. To me it looks like as is someone has combed through the entire user experience and fixed most of the stuff that bothered me. The taskbar change alone are good enough for the upgrade.
Posted by abhinaba | 0 Comments
Filed under: , ,

Is interlocked increment followed by comparison thread safe?

Sorry about the blog title, my imagination failed me :(. In our internal alias someone asked the question "Is the following thread safe" if(Interlocked.Increment(ref someInt) == CONSTANT_VAL) { doSomeStuff(); } My instant reaction was no because

C/C++ Compile Time Asserts

The Problem Run time asserts are fairly commonly used in C++. As the MSDN documentation for assert states " (assert) Evaluates an expression and, when the result is false, prints a diagnostic message and aborts the program. " There is another

Taking my job more seriously

I generally take my work very seriously. However, the following from SICP was still my favorite quote " I think that it's extraordinarily important that we in computer science keep fun in computing. When it started out, it was an awful lot of fun.

Silverlight on Nokia S60 devices

In many of my blog posts (e.g. here and here ) I refer to .NET Compact Framework and Symbian OS (S60) and obviously folks keep asking me via comments (or assume) that we are porting .NETCF on S60 devices. So I thought it's time to clarify :) The short

A* Pathfinding algorithm animation screen saver

I'm trying to learn WPF and IMO it is not a simple task. Previously whenever I upgraded my UI technology knowledge it had been easy as it build on a lot of pre-existing concepts. However, WPF is more of a disruptive change. I decided to write some simple

Team Foundation Server tool dump workspace details

I juggle around with a lot of workspaces. The reason is .NET Compact Framework is consumed in a whole bunch of things like Windows Mobile, Xbox, Zune, Nokia and most of them are on different source branches. On top of this active feature work happens
Posted by abhinaba | 1 Comments

Back to Basic: Using a System.Threading.Interlocked is a great idea

I just saw some code which actually takes a lock to do a simple set operation. This is bad because taking locks are expensive and there is an easy alternative. The System.Threading.Interlocked class and its members can get the same job done and much faster.

Microsoft Roundtable

Our conference rooms have been fitted with this really weird looking device (click to enlarge). I had no clue what the thing was. Fortunately it's box was still placed in the room along with the manual. It's called the Microsoft RoundTable and it is actually
Posted by abhinaba | 2 Comments
Filed under: , ,

Do namespace using directives affect Assembly Loading?

The simple answer is no, the inquisitive reader can read on :) Close to 2 year back I had posted about the two styles of coding using directives as follows Style 1 namespace MyNameSpace { using System; using System.Collections.Generic; using System.Text;
 
Page view tracker