Technology news and views
RSS icon Email icon Home icon
  • Debug mode build of Visual C++ application hangs after an extended period of time

    Posted on November 7th, 2008 Sandeep No comments

    This post specifically pertains to Visual C++ 6.0 SP5 and earlier.

    A colleague pointed out a strange scenario where one of our applications, developed in Visual C++, would hang after running for about a week. The code would hit a debug break in one of the C runtime libraries – specifically _heap_alloc_dbg of DBGHEAP.c in your platform SDK. The reason was that we were hitting an upper limit on the number of allocations permitted for a program compiled in debug mode – which was essentially 0xFFFFFFFF.

    After a few searches, we found that the issue has indeed been fixed in service pack 6 for VS 6.0. More details about the fix can be found in the following knowledge base article from Microsoft.

    Note that this applies only to debug builds. This issue is not seen in release mode.

  • Can’t wait for Windows 7

    Posted on November 5th, 2008 Sandeep 3 comments

    I repeat: I can’t wait for Windows 7 to be released. I liked Windows Vista, although this is not my primary operating system (office regulations – so we get only Windows XP on our laptops). However, after seeing and drooling over the many screenshots from the Windows 7 beta, I think I will just have to wait for it.

    Oh, and before anyone asks, no, I don’t own a Mac and I don’t intend to. I tried using it for a while but just could not get myself to do it. I have enough problems with the iPhone as is, and if Apple can’t get things right on a portable device, I suspect things could be much worse on a laptop. To the Apple fanbois: I’m not a Microsoft zealot by any means.

    To anyone working at Microsoft that is reading this: I need a beta version, please. ‘kthxbye.