Posts Tagged ‘bug’

If you dare to convert your C++ ATL Service project created with an earlier version of Visual Studio to version 2010, as I recently did, you might find yourself surprised with why the hell the bloody thing does not work anymore as a regular executable. After passing compiler/linker and SDK update issues, which you possibly [...]

A really long and annoying troubleshooting of a problem finally ended with a bug found in GetAdaptersInfo/GetAdaptersAddresses API. It may unexpectedly fail under the following conditions: 32-bit application 64-bit operating system or /3GB feature enabled on 32-bit operating system hosting process is linked with /LARGEADDRESSAWARE flag or has otherwise set it in binary header over [...]

You cannot remove RBBS_NOGRIPPER flag from rebar band

Posted: 31st March 2011 by Roman in Source, WTL
Tags: , , ,

It is as stupid as it sounds: you can add RBBS_NOGRIPPER flag to a rebar band to implement “lock controls” feature, but as soon as you start removing it – you miserably fail. A related thread on WTL group is dated year 2006. You can find the same dated 2003. Now it’s 2011 and it’s [...]

If you were adding and removing ActiveX controls programmatically with ATL, you might have noticed a nasty memory leak after final release of the control. Control added, removed and a leaky block is left om heap. Tracking simple memory leaks is not a rocket science with Microsoft C++ runtime, by adding _CRTDBG_MAP_ALLOC define, as described [...]

It was a sort of ridiculous problem: an attempt to instantiate a Microsoft.Jet.OLEDB.4.0 object failed with error. Still some applications are still running without problems connecting to Jet databases, how comes? There has been a number of posts on Internet, but none of the top ones appeared to be relevant. The problem is reproduced extremely [...]

A small fix for M-JPEG video streams retrieved by HTTP Stream Source Filter: Username and password contained in URL are honored for Basic HTTP authentication Correctly parsed HTTP response headers with quotes, e.g.: Content-Type: multipart/x-mixed-replace; boundary=“myboundary“ Partial Visual C++ .NET 2008 source code is available from SVN, release binary included.

An attempt to render media file in GraphStudio ended up with an error message: Protection A monitor program has been foun drunning in your system. Please unload it from memory and restart your program. The module which popped up the message chose to not identify itself in a friendly manner, however as nothing goes untraceable [...]