Category Archives: Computers

Disappearing folder – bug in Windows 7

In process of testing one of our automation software I hit interesting Windows 7 bug. First I found it in our software, and right away tested this scenario on Windows 7, and bug was there. The bug. Create folder on … Continue reading

Posted in Computers, OS | Tagged , , , , , | Leave a comment

Strange MAC addresses in your network (00:0D:3A:D7:F1:40 – 00:0D:3A:FF:FF:FF)

Today I noticed many strange MAC addresses in our LAN. The addresses looked very similar – only few bits were changing. Sometime this happens, when Ethernet cable is damaged or due to network card malfunction. Here are some sample MAC … Continue reading

Posted in Computers, OS | Tagged , , | Leave a comment

On production machine: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts.

I was helping my colleagues to debug one weird bug on ASP.NET 4.0 website. Everything worked well on developer’s machine, but after publishing to IIS 7.5 Windows 2008 R2 Webserver, we always got site partially working. Everything worked, except AJAX … Continue reading

Posted in Computers, Programming, Web | Tagged , , , , , | Leave a comment

C++ now allows to forward declare enum(s)

Thanks to recently approved standard (C++11 / C++0x), it is possible to forward declare enums. It was possible with classes for the long time, for example, “class MyClass;” in C++ [forward] declares class without providing underlying details. For enums it … Continue reading

Posted in Computers, Programming | Tagged , | Leave a comment

.NET text box blank/empty/invisible/hidden when text reaches certain length

It seems, that .NET 2.0 have bug when text box (TextBox control) appears blank / empty / invisible / hidden — not showing text when text length reaches certain size. My quick tests shows, that the length of the text … Continue reading

Posted in Computers, Programming | Tagged , , , | Leave a comment

Static code analysis for C++ for free and for Pro

Up and until Visual Studio 2010 Microsoft decided that Code Analysis tool was available only for Visual Studio Premium and Ultimate editions. I have Visual Studio 2010 Pro w/MSDN subscriptions (actually 2 of them), but can not use Code Analysis … Continue reading

Posted in Computers, Programming | Tagged , , | Leave a comment

COM, BSTR or _bstr_t is leaking memory

COM, BSTR or _bstr_t is leaking memory. That was my first thought when I saw increasing number in Task Manager under memory colon for the process I am developing. Searching Google for quick answer I found famous Microsoft employee and … Continue reading

Posted in Computers, OS, Programming | Tagged , , , | 1 Comment

2011 links no. 3

Interview With Sacha Barber in The Code Project. The ABA problem occurs during synchronization, when a location is read twice, has the same value for both reads, and “value is the same” is used to indicate “nothing has changed”. However, … Continue reading

Posted in Computers, OS, Programming, Web | Tagged , , , , , , , , , , , , , , , , | Leave a comment

CreateProcessAsUser fails on Windows XP with System error 233

Today I fixed one bug that was very hard to reproduce. Many hours were spent to figure out what combination caused it: It happens only on Windows XP (not on Vista, Server 2003, 2008, Win 7); It does not happens … Continue reading

Posted in Computers, OS, Programming | Tagged , , , , | 1 Comment

Microsoft’s PowerShell hangs when output is captured using Windows API

I was debugging a program that uses Windows API (Creating a Child Process with Redirected Input and Output) to capture stdout of Microsoft’s Windows PowerShell. Script passed to PowerShell (-File switch) didn’t execute and PowerShell just hanged until killed by … Continue reading

Posted in Computers, OS, Programming | Tagged , , | Leave a comment