Sign in
|
Join
|
Help
Pavel's Blog
Pavel is a software guy that is interested in almost everything
software related... way too much for too little time
Home
Contact
About
RSS
Atom
Comments RSS
Go
Tags
.NET
.NET 4
.NET 4.0
.NET 4.5
.NET Profiling API
.NET2
.NET3.5
.NET4
64 bit
AI
AJAX
Android
Anonymous delegates
ASP.NET
ASP.NET MVC
ATL
Audio
Azure
BigInteger
BUILD
C#
C# 3.0
C# 4.0
C# 5.0
C++
C++/CLI
C++0X
C++11
CLR
CLR Explorer
COM
COM Apartments
Console
courses
D&D
Debugging
DEV
Developer Academy 3
Device Drivers
DirectCompute
DirectX
food
Fun
Games
Graphics
Intel
Intellisense
Internals
Interop
ITPRO
LINQ
LINQ to XML
Media Foundation
Memory Map Viewer
Menus
MFC
Multithreading
Native API
Native Development
NLP
Numerics
OFFTOPIC
OpenDay
PARSING
PDC2008
ReSharper
Robotics
Silverlight
Silverlight 2
Task Parallel Library
TECH
teched
teched_il
TechEd2010
TechedIsrael2008
thoughts
Threading
Tips
Tutorial
video
Vista
Visual Basic
Visual Studio
Visual Studio 11
Visual Studio 2005
Visual Studio 2008
Visual Studio 2010
VS 2010
WebTech
Win32
WinDbg
Windows Devices User Group
Windows Phone
Windows Phone User Group
Windows Platfrom User Group
Windows7
WPF
XAML
XNA
מכללת הי-טק
Archives
February 2012 (3)
January 2012 (6)
December 2011 (6)
November 2011 (5)
October 2011 (5)
September 2011 (5)
August 2011 (5)
July 2011 (3)
June 2011 (3)
May 2011 (3)
April 2011 (3)
March 2011 (8)
February 2011 (4)
January 2011 (5)
December 2010 (5)
November 2010 (13)
October 2010 (4)
September 2010 (5)
August 2010 (7)
July 2010 (1)
June 2010 (3)
May 2010 (4)
April 2010 (1)
March 2010 (2)
February 2010 (2)
January 2010 (3)
December 2009 (1)
November 2009 (4)
October 2009 (5)
September 2009 (3)
August 2009 (1)
July 2009 (4)
June 2009 (3)
May 2009 (2)
April 2009 (3)
March 2009 (2)
February 2009 (5)
January 2009 (3)
December 2008 (2)
November 2008 (4)
October 2008 (7)
September 2008 (6)
August 2008 (5)
July 2008 (6)
June 2008 (3)
May 2008 (5)
April 2008 (2)
March 2008 (9)
February 2008 (4)
January 2008 (9)
December 2007 (6)
Navigation
Home
All Posts
RSS
Popular Tags
Browse by Tags
All Tags
»
CLR
(
RSS
)
.NET
.NET 4
.NET 4.0
.NET Profiling API
ATL
C#
C# 5.0
C++
CLR Explorer
COM
Debugging
DEV
Developer Academy 4
Internals
MFC
PDC2008
Win32
WinDbg
Windows Platfrom User Group
מכללת הי-טק
A ‘Proper’ WeakReference Class
04 June 11 12:12 PM
|
pavely
|
1 comment(s)
The WeakReference class that exists since .NET 1.0 can be used to wrap an object while not being the one keeping it alive. This may be useful in an “Observer” pattern scenario, where a client registers for some notification, but “forgets” to unregister. That means that with a normal reference, even if the client is no longer needed, it keeps getting notifications because the server object keeps a strong reference to the client. Here’s a simple example: class BasicSubject { List...
PSSCOR4 Debugger Extension Released
29 April 11 07:04 PM
|
pavely
| with
no comments
A while back, Microsoft released the PSSCOR2 debugger extension for WinDbg, supporting more command than the classic SOS.DLL. This was for CLR v2 (.NET 2-3.5). Now a similar extension has been released for CLR 4 (.NET 4). You can download it here . There are versions for x86 and x64. The easiest way to use them is copy the relevant DLL to the .NET framework directory for the corresponding “bitness” (where SOS lives, something like C:\Windows\Microsoft.NET\Framework\v4.0.30319 (32bit) or C:\Windows...
Windows Platform Developers User Group meeting
06 October 10 10:45 PM
|
pavely
|
3 comment(s)
This evening was a WPDUG meeting on CLR hosting and CLR profiling. Thank you all for coming! It was a pleasure to see so many of you there. My session was on CLR hosting, using the new CLR 4 hosting API. This is done using native code (C++) that uses COM for communication between the CLR and the host, both ways. I showed how to enumerate the installed runtimes, how to load a specific CLR (a new feature of CLR 4 – the ability to host multiple CLRs in a single process), how to create an application...
My C# 5.0/CLR 5 Wish List
22 August 10 01:54 PM
|
pavely
|
10 comment(s)
C# 5.0 is probably in the works (for sure). A while back I blogged about features I’d like to see in C# 4.0 . I didn’t get any of my wishes (well, maybe I got one wish in an unexpected way, more on that later). Here’s a list of features I’d love to see in the next version of the C# language and the CLR. It’s not yet Christmas, but maybe Microsoft’s Santa needs some time to make these wishes come true: operator constraints This is something I wished for with C# 4.0, but didn’t get. Well, I actually...
My Developer Academy 4 Session
22 March 10 08:29 PM
|
pavely
|
2 comment(s)
Today, I presented the session entitled “.NET 4: What’s new in the CLR and BCL?”. Thank you all for attending! I didn’t get the chance to do all the demos I wanted because of time constraints (I always try to stuff more that is possible in the allotted time, and even “stole” a few minutes extra), but I hope the message went through: there are improvements all over the board that will impact almost any type of application. I suggest you download the demos and slides from the developer academy 4 site...
WeakReferences and Events
07 January 10 01:35 PM
|
pavely
|
2 comment(s)
One of the well-known pitfalls of using events, is the holding of the subscriber instance by the publisher (if connecting to a delegate holding an instance method). If the subscriber forgets to unsubscribe, the instance cannot be garbage collected because the publisher holds a reference to it. Worse yet, the subscriber continues to receive event notifications even though it’s not interested. One way to deal with this is presented in Jeffrey Richter’s book “CLR via C#” . The idea is based on a custom...
PDC Report: Day 3
30 October 08 11:07 AM
|
pavely
| with
no comments
In my previous report , I forgot to mention one more significant product update: Office. The next version of Office (“Office 14”) will have an online version, complete with the famous Ribbon and all major editing capabilities. In addition, synchronization services will allow nice, seamless sync between an online and offline versions, including the ability to open the same file by multiple users for editing with automatic or manual updates. On with day 3! Today’s keynote was by Rick Rashid, the head...
Writing a .NET Profiler
20 May 08 09:36 AM
|
pavely
|
2 comment(s)
I was recently asked how a managed application can know the actual size of managed objects it allocates. Although there exists a Marshal.SizeOf method that seemingly can do the trick, this only works for value types, as the method is intended to be used in interop scenarios where some unmanaged memory must be allocated in managed code and passed to some unmanaged function. This question, and others like it can best be answered by using a the .NET profiling API. The .NET profiling API allows the ...