Microsoft KB Archive/323515

= BUG: &quot;Object Required&quot; Error Message When You Add an ATL Object in Visual Studio .NET on a Computer Running Windows NT =

Article ID: 323515

Article Last Modified on 7/29/2002

-

APPLIES TO


 * Microsoft Visual C++ .NET 2002 Standard Edition
 * Microsoft Windows NT Workstation 4.0 Developer Edition

-



This article was previously published under Q323515



SYMPTOMS
On a computer running Windows NT, when you try to add a lot of simple objects to an ATL project in Visual Studio .NET, you receive the following error message.

Object Required

This behavior does not occur on a computer running Windows 2000 or Windows XP.



CAUSE
When you run any combination of the wizards 64 times on a computer running Windows NT 4.0, the operating system runs out of thread local storage (TLS) indexes for the Visual Studio .NET IDE process.

This behavior does not occur on a computer running Windows 2000 or Windows XP because 1024 TLS indexes are available.



RESOLUTION
To resolve this problem, close the Visual Studio .NET IDE (Devenv.exe), reopen the IDE, and then try to add the simple object again.

NOTE: You may have to delete code modules that were added by the last invocation of the wizards because these modules may not be completely created.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
To reproduce the problem, follow these steps:
 * 1) Create a default ATL DLL project by using the ATL Project wizard.
 * 2) Use the Add Class wizard to add approximately 17 simple ATL objects.

