BUG: "Object Required" Error Message When You Add an ATL Object in Visual Studio .NET on a Computer Running Windows NT
This article was previously published under Q323515
This article has been archived. It is offered "as is" and will no longer be updated.
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.
This behavior does not occur on a computer running Windows 2000 or Windows XP.
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.
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.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
To reproduce the problem, follow these steps:
- Create a default ATL DLL project by using the ATL Project wizard.
- Use the Add Class wizard to add approximately 17 simple ATL objects.
For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
INFO: Thread Local Storage Overview
Article ID: 323515 - Last Review: 10/26/2013 17:12:43 - Revision: 1.0
- Microsoft Visual C++ .NET 2002 Standard Edition
- Microsoft Windows NT Workstation 4.0 Developer Edition
- kbnosurvey kbarchive kbbug kbwizard kbpending KB323515