Microsoft KB Archive/330209

= The IDE stops responding when you use a macro to automate your project build in Visual Studio .NET =

Article ID: 330209

Article Last Modified on 12/10/2003

-

APPLIES TO


 * Microsoft Visual Studio .NET 2003 Enterprise Architect
 * Microsoft Visual Studio .NET 2003 Enterprise Developer
 * Microsoft Visual Studio .NET 2002 Enterprise Architect
 * Microsoft Visual Studio .NET 2002 Enterprise Developer

-



This article was previously published under Q330209



SYMPTOMS
If you use a macro script to run an automated build of your project, Microsoft Visual Studio .NET may appear to stop responding during the automated build.



CAUSE
This problem may occur if the macro build code does not include a sufficient delay between the call to the Open method that opens the solution and the call to the Build method. Typically, this problem occurs on a computer that has a slower processor because the Open method has not completed when the macro calls the Build method.



RESOLUTION
To resolve this problem, use the System.Threading.Thread.Sleep(5000) method to introduce a delay after the call to the Open method.

Note You may have to increase the Sleep value, depending on the processor speed of your computer.



STATUS
This behavior is by design.

