Microsoft KB Archive/822880

= FIX: You receive a &quot;System.InvalidOperationException&quot; error message when you drag a window over a form that contains a DataGrid object =

Article ID: 822880

Article Last Modified on 10/18/2005

-

APPLIES TO


 * 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

-





SYMPTOMS
When you drag any window over the window of a Microsoft Visual Studio .NET 2002 application, you receive the following error message:

A first chance exception of type 'System.InvalidOperationException' occurred in system.drawing.dll

Additional information: The object is currently in use elsewhere.

This problem occurs when the following conditions are true:
 * The application uses threads to create more than one window.
 * The window that is created by threads contains a form with a DataGrid object.



RESOLUTION
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Note The supported hotfix is for the Japanese (JPN) version only. If you require a version other than the JPN version, contact Microsoft Product Support Services.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For additional 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

Keywords: kbbug kbfix kbqfe kbvs2002sp1sweep KB822880

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.