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

Article translations Article translations
Article ID: 323515 - View products that this article applies to.
This article was previously published under Q323515
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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.

REFERENCES

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
94804 INFO: Thread Local Storage Overview

Properties

Article ID: 323515 - Last Review: October 26, 2013 - Revision: 1.0
APPLIES TO
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
Keywords: 
kbnosurvey kbarchive kbbug kbwizard kbpending KB323515

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com