FIX: The code in a FOR loop under a destructor does not run correctly in a Visual C++ .NET application that was created in Visual Studio .NET 2002

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

On This Page

SYMPTOMS

In an application that was created in Microsoft Visual Studio .NET 2002 by using Microsoft Visual C++ .NET, item objects that are created in the for loop are never destructed. Therefore, the code that was written in the for loop under a destructor is never executed.

CAUSE

This problem occurs because no braces ({}) appear in the for loop. If you do not use braces in the for loop, the compiler does not generate the code correctly.

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft Visual Studio .NET. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
837234 List of bugs that are fixed in Visual Studio .NET 2002 Service Pack 1

Hotfix information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version      Size       File name
   -----------------------------------------------------
   17-Jul-2002  10:03  13.0.9518.0  2,105,344  C1xx.dll
   17-Jul-2002  10:03  13.0.9518.0  1,753,088  C2.dll

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section of this article. This problem was first corrected in Visual Studio .NET 2002 Service Pack 1.

MORE INFORMATION

For more information about the terminology that is used to describe Microsoft product updates, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 325809 - Last Review: October 26, 2013 - Revision: 2.0
APPLIES TO
  • Microsoft Visual C++ .NET 2002 Standard Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft Visual Studio .NET 2002 Enterprise Architect
  • Microsoft Visual Studio .NET 2002 Enterprise Developer
  • Microsoft Visual Studio .NET 2002 Academic Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbqfe kbvsnetpresp1fix kbvs2002sp1sweep kbvs2002sp1fix KB325809

Give Feedback

 

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