Sign In
Thottam R. Sriram
Development Lead, Hosted Services (Current) Program Manager, CLR Team (2005-2007)
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Options
Email Blog Author
RSS for posts
Atom
RSS for comments
OK
Search
Advanced search options...
Search In:
Everything
Blogs
Forums
People
Groups
Places
Pages
Date range:
All Time
Last Year
Last 6 Months
Last 3 Months
Last Month
Last Week
Last Two Days
Tags
No tags have been created or used yet.
Archive
Archives
October 2009
(1)
May 2009
(1)
April 2009
(1)
March 2009
(1)
February 2009
(1)
January 2009
(1)
September 2008
(1)
August 2008
(1)
July 2008
(1)
June 2008
(1)
May 2008
(1)
April 2008
(1)
March 2008
(1)
February 2008
(1)
January 2008
(1)
November 2007
(1)
September 2007
(3)
August 2007
(2)
July 2007
(1)
June 2007
(3)
May 2007
(1)
April 2007
(1)
March 2007
(1)
February 2007
(3)
January 2007
(1)
December 2006
(1)
November 2006
(1)
October 2006
(1)
September 2006
(2)
August 2006
(3)
July 2006
(2)
April 2006
(4)
March 2006
(3)
February 2006
(1)
MSDN Blogs
>
Thottam R. Sriram
Posts
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Thottam R. Sriram
Generic list and powershell
Posted
over 3 years ago
by
thottams@microsoft.com
1
Comments
I met with an accident recently riding my motorcycle and hence was unable to blog for some time. Here is my post after a brief break. I wanted to create a generic list of my class in power shell. It was an interesting experience. Here is what I...
Thottam R. Sriram
Debug .NET Framework Source Code and loading SOS in Visual Studio
Posted
over 3 years ago
by
thottams@microsoft.com
1
Comments
I found this blog post from Shawn Burke to be very useful. Comes in handy if you have to step through .NET source when debugging. http://blogs.msdn.com/sburke/archive/2008/01/16/configuring-visual-studio-to-debug-net-framework-source-code.aspx Another...
Thottam R. Sriram
Asynchronous delegates and callback
Posted
over 3 years ago
by
thottams@microsoft.com
4
Comments
I was debugging some issue related to asynchronous delegates and wanted to share that information with everyone. When you do a BeginInvoke the delegate is invoked on a thread from the thread pool and on completion the callback is also called on...
Thottam R. Sriram
System.Data.DataException and System.Data.DataSet.RaiseMergeFailed exception
Posted
over 3 years ago
by
thottams@microsoft.com
1
Comments
This was another interesting issue I encountered recently. The error presented itself as an event log entry from our logging as below: Unhandled Exception: System.Data.DataException: <target>.Column2 and <source>.Column2 have conflicting...
Thottam R. Sriram
CString and GetLength
Posted
over 3 years ago
by
thottams@microsoft.com
12
Comments
I ran into this problem recently when debugging some native code and thought that it will be good to share this with everyone . CString sampleString = CString(_T( "Sample\0String" ), 14); int len = sampleString.GetLength(); // len is 14 CString...
Thottam R. Sriram
NTSD and SOS: StopOnException
Posted
over 3 years ago
by
thottams@microsoft.com
0
Comments
using System; class Program { static void Main( string [] args) { Program p = new Program(); p.ExceptionSample(); } private void ExceptionSample() { int i=0; while (i < 100) { if (i == 60) { try {...
Thottam R. Sriram
XMLSerializer, XDocument and LINQ
Posted
over 4 years ago
by
thottams@microsoft.com
5
Comments
I took the sample from my previous post and wanted to use LINQ to query the XML. You can pretty much use the power of SQL on the document object to richly query for things you are looking for. using System; using System.Linq; using System...
Thottam R. Sriram
XmlSerialization to generate and consume XML
Posted
over 4 years ago
by
thottams@microsoft.com
4
Comments
I want to talk about Xml Serialization this month. One of the work I was involved in recently required generation of XML and a I came across this wonderful technology which helps you generate and consume XML seamlessly. If you are generating XML...
Thottam R. Sriram
Simple sample for Events and Delegates
Posted
over 4 years ago
by
thottams@microsoft.com
2
Comments
I wanted to write a small sample to illustrate events and delegates. Here is a compact sample that illustrates it. using System; public class EventSample { public delegate void EventHandler (); public event EventHandler myeh; public...
Thottam R. Sriram
DBNull and Nullable types
Posted
over 4 years ago
by
thottams@microsoft.com
13
Comments
When we have C# code interacting with the data base you run into this problem. Let me try and explain it. The database has nullable columns and C# has nullable types. For example, let us take a table Employee which has Id (int), name (string) and age...
Thottam R. Sriram
Diagnostics: Using ETW tracing in .NET 3.5 (EventProviderTraceListener)
Posted
over 4 years ago
by
thottams@microsoft.com
7
Comments
. NET exposes an elegant diagnostics model that can be used by applications. It is a bit confusing to start with. There are a few listeners that exist in the Diagnostics namespace. Some of them are 1. TextWriterTraceListener 2. DefaultTraceListener...
Thottam R. Sriram
Unhandled Exception handler (UnhandledExceptionEventHandler) to collect more information about unexpected exceptions
Posted
over 4 years ago
by
thottams@microsoft.com
9
Comments
To continue on the exception post from last week I did a bit more research and learnt some more. I thought that I will share that with everyone. We had some interesting conversations in our team about exception handling and the following thought came...
Thottam R. Sriram
Handling, throwing - exceptions and Clean up on error
Posted
over 4 years ago
by
thottams@microsoft.com
5
Comments
There are four ways to throw an exception in my opinion. They are: 1. Throw a new exception a. throw new ArgumentException( … ); 2. Throw the exception you caught a. throw e; 3. Throw the same exception preserving the stack a. throw;...
Thottam R. Sriram
Code Access Security, LinkDemand and Effective Sandbox
Posted
over 4 years ago
by
thottams@microsoft.com
1
Comments
I wrote about Deny and Assert in my previous blog post. In my repeated attempts to get the previous sample working for LinkDemand, I discovered that Deny and PermitOnly are not effective against LinkDemand. The code worked all the time and I was wondering...
Thottam R. Sriram
Code Access Security - Understanding Demand and Declarative Security
Posted
over 4 years ago
by
thottams@microsoft.com
1
Comments
I wanted to talk about Code Access Security this time. Code Access Security is a big in itself. In this post I wanted to talk about Declarative Security. Declarative security uses attributes to place security information on assemblies, classes and methods...
Thottam R. Sriram
Calling delegates using BeginInvoke, Invoke, DynamicInvoke and delegate
Posted
over 5 years ago
by
thottams@microsoft.com
4
Comments
I wanted to write about delegates this month. There are different ways in which you can invoke delegates to get either a synchronous or an asynchronous behavior. But from what I noticed, the delegate model provides you very less control when you invoke...
Thottam R. Sriram
Posting from word
Posted
over 5 years ago
by
thottams@microsoft.com
3
Comments
I was cutting and pasting from word till now to post. It was long in my list to try and use word and see how that works and it works great. Column1 Column2 Column3 Row2 Row2 Row2 I look forward to using this.
Thottam R. Sriram
Why is generic constructor not allowed?
Posted
over 5 years ago
by
thottams@microsoft.com
1
Comments
Generic argument is not allowed in the constructor. When I compile the code below I get a compilation error saying: error CS1519: Invalid token '(' in class, struct, or interface member declaration The reason is simple. You can have a class...
Thottam R. Sriram
Same name for a generic and non-generic class
Posted
over 5 years ago
by
thottams@microsoft.com
1
Comments
I was writing a sample to do something and I noticed that when I declare and instantiate a generic class, I had to pass the generic type in two places: 1. Foo<Int32> fooGenericInstance; 2. FooGenericInstance = new Foo<Int32>(); ...
Thottam R. Sriram
New role within Microsoft
Posted
over 5 years ago
by
thottams@microsoft.com
2
Comments
After almost two years with the CLR team I have decided to move on and take new challenges. I have joined the Exchange Hosted Services team as a Development Lead starting today. I will continue to blog about what I understand and know about the CLR. I...
Thottam R. Sriram
MSDN article about COM Connection Points and managed client
Posted
over 5 years ago
by
thottams@microsoft.com
0
Comments
I wrote my second article in MSDN which got published in the September issue. This article is about " COM Connection Points ". It gives an overview of COM connection points and explains how to use the same managed code. You can find the article here ...
Thottam R. Sriram
Managed C++ and C#
Posted
over 5 years ago
by
thottams@microsoft.com
8
Comments
I tried writing a sample to use managed C++ to interact with managed code and here is my learning. I created the following managed C++ code to wrap existing FLAT API’s in a class that can be called form C#. Managed C++ code: #using <mscorlib...
Thottam R. Sriram
How to control the version of .NET Framework your application runs against?
Posted
over 5 years ago
by
thottams@microsoft.com
2
Comments
Let us look at a small sample that illustrated how this configuration entry works. using System; class Sample { public static void Main() { Console .WriteLine( "This is a sample" ); } } Let us copy this code to RequireRuntime...
Thottam R. Sriram
Debugging load problems using fusion log
Posted
over 5 years ago
by
thottams@microsoft.com
5
Comments
Fusion log comes in very handy when you want to understand or debug binding behaviors. Let us take the sample code below. Copy the code to DomSample.cs and compile it. Let us assume for now that the code tries to load some arbitrary assembly “Foo” which...
Thottam R. Sriram
PInvoke-Reverse PInvoke and __stdcall - __cdecl
Posted
over 5 years ago
by
thottams@microsoft.com
2
Comments
I came across this issue yesterday and thought that I will blog about the same. The example below demonstrates a simple PInvoke and Reverse PInvoke through delegates. The initial call was defined to use the __cdecl convention. As you can notice when executing...
Page 1 of 2 (50 items)
1
2