The undetectebility of C++/CLI gcroot<> template references.

In recent builds, we have been having an awful memory leak in our system. Silvio was debugging it and noticed that we had way too many instances of a specific type in our appdomain (where there should have been zero copies of this item when the system was in idle, there were thousands of it)….


Environment.TickCount returns negative numbers – MSDN doc error

This one just bit us a today. The documentation for TickCount on MSDN say that this value is always positiove: <Quote>The TickCount property handles an overflow condition by resetting its value to zero. The minimum value returned by TickCount is 0.</Quote> And in another place in the docs: <Quote>The value of this property is derived…

9

Excel Services related Snippets

Snippets are small coding helpers that you can use to make development a little faster. In this article, I will aggregate various helpers that have to do with Excel Services. To import the snippets follow these steps:1. Download the attached file (bottom of this article).2. In Visual Studio 2005, choose Tools/Code Snippet Manager.3. Choose Visual…

1

Tracing exceptions – guidelines

(Don’t know what Excel Services are? Find out!)   Since Excel Services (in the Microsoft Office Sharepoint Server 2007 product) is, well, a server product, we rely heavily on tracing when we debug or try to figure out what’s going on. Most servers and quite a few client applications use that. Our logging has proven…


Be careful when debugging Visual Studio 2005 created Web-Apps

While fixing a bug (I have to do that every once in a while. It’s in the contract. I think), I needed to make use of the IsClientConnected property of the HttpResponse object in a WebService sort of project. After trying various things, I still could not make it return false so I decided to…


Copy (Ctrl-C) works in Message Boxes

This feature has been working since windows 2k or early versions of XP, and still many people do not know about it. If you have a Message Box showing, and you want to copy its contents, you can just Ctrl-C when the window is focused – you will hear a beep and the contents of…

1

That annoying c:windowsassembly folder

If you are anything like me, you want to tear your hair out and smash your head on a concrete wall with embedded rusty nails everytime you need to use Explorer (and any file-open dialog box) on the c:\windows\assembly directory. While I am still working with my therapist on these issues, I decided to be…

60