Author Archives: Maris

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

.NET Framework 2.0 is not installed on Windows 8 Developer Preview by default

.NET Framework 2.0 is not installed on Windows 8 Developer Preview by default. To install it, go to Control Panel – Programs – Turn Windows features on or off – Check ‘Microsoft .NET Framework 3.5.1′ – OK. Note, that .NET … Continue reading

Posted in OS | Tagged , | 5 Comments

Urih.com statistics – you never know what will be most used feature

22 weeks (or 5 months and 5 days) after urih.com launch, here we have an interesting stats. Clearly, the most used feature on the urih.com is SilverBench – online CPU benchmark tool. The opposite – the feature that no one … Continue reading

Posted in 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

2011 links no. 2

Stack Overflow profiler open sourced: Profiling your website like a true Ninja. Smaller is Faster (and Safer Too). Chrome team have just started using a new compression algorithm called Courgette to make Google Chrome updates small. Read more. Ask Amir … Continue reading

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

Urih.com has online resource viewer for executable files

One of very interesting online tool we launched in urih.com is online resource viewer for executable files. We call it – Portable executable online viewer. This new (online) tool can be used like any old (offline) tool to view images … Continue reading

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

Strange HTTP GET requests from IP 150.70.x.x and IP 62.24.x.x

Recently I started to notice that one of our sites gets strange HTTP GET requests from two IP ranges: 150.70.x.x and IP 62.24.x.x. The short version of this goes as follows: we have web service when users can submit results … Continue reading

Posted in Computers, Programming, Web | Tagged , , | 2 Comments

Windows API PlaySound error / silence

Today stumbled at strange behavior of Windows API function PlaySound in combination with SND_FILENAME flag. There are two scenarios: No sound is played, and PlaySound returns success (TRUE) in combination with SND_ASYNC; No sound is played, and PlaySound returns failure … Continue reading

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