Programming Windows

Slow execution of application from Visual studio

Today my Visual Studio 2010 started to execute my application super slowly. When I tried to execute my application (without any changes in source-code) the delay between “Start Debugging” and application start was about one minute. I know that too many breakpoints or breakpoints in templates could caused this, but I don’t see any breakpoint …

Continue Reading
Programming

Error in RegEx (atlrx.h) in Visual Studio C++ 2003 and 2005

During our development we found that Microsoft RegEx (Regular expression) implementation contains a bug which caused crashes of our applications. The application module using RegEx passed all unit test, but sometimes under heavy usage the application crashed at our customer. Because we use BugTrap for error and crash notifications, we knew the error was in …

Continue Reading
Qt Windows

Qt application crash when compiled for 64-bit VS2010

Callstack The bug is probably caused by wrong alignment or incorrect VS2010 compiler optimalization. Found resources: https://bugreports.qt.nokia.com//browse/QTBUG-11445 https://connect.microsoft.com/VisualStudio/feedback/details/573262/incorrect-alignment-with-x64-optimizer-and-movaps http://support.microsoft.com/kb/2280741 https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=31433 Workarounds: First way – Update VS2010 mkspec for Qt go to $QTDIR/mkspecs/win32-msvc2010/qmake.conf and replace -02 with -01 (ie. reducing the optimzation level).Also /Ob0 could be used. Microsoft hotfix for VS http://archive.msdn.microsoft.com/KB2280741 File patch name VS10-KB2268081-x86.exe …

Continue Reading
Programming

List of usefull links for Visual Studio

How to customize autoexp.dat in Visual Studio 2005 http://mariusbancila.ro/blog/?p=26 http://www.virtualdub.org/blog/pivot/entry.php?id=120 Example visualizator for XString How to configure STEP-INTO for Visual Studio 2005 External links: Google group www.cprogramming.com http://blogs.msdn.com/b/andypennell/archive/2004/02/06/69004.aspx Example how to setup ingoring step-into for MFC CString for VS2005 Example how to setup ingoring step-into for MFC CString for VS2010 on 64bit system

Continue Reading