Microsoft Knowledge Base Email Alertz

FIX: ImageAnimator.UpdateFrames causes InvalidOperationException in a multithread Windows Form application in the .NET Framework 2.0 Service Pack 2

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 2263779 - Last Review: September 10, 2010 - Revision: 3.0

FIX: ImageAnimator.UpdateFrames causes InvalidOperationException in a multithread Windows Form application in the .NET Framework 2.0 Service Pack 2

On This Page

SYMPTOMS

Consider the following scenario: You have a Microsoft .NET Framework 2.0 Service Pack 2 (SP2) service-based multithread Windows Form application. There are GIF images on the forms of each UI thread so that this application calls the ImageAnimator class internally.

In this scenario, the application crashes when you run it for a long time. And, you receive the following exception errors:

Exception type: System.Reflection.TargetInvocationException

Message: Exception has been thrown by the target of an invocation.


Inner exception: System.InvalidOperationException

Message: Object is currently in use elsewhere.

CAUSE

The problem occurs because of an issue in the ImageAnimator.UpdateFrames method.

RESOLUTION

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)

Prerequisites

The following list contains prerequisites for the hotfix package:
  • You must have .NET Framework 2.0 SP2 or .NET Framework 3.5 Service Pack 1 (SP1) installed to apply the hotfix.

Restart Requirements

You do not have to restart the computer after you apply this hotfix package.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File Information

The English (United States) version of this hotfix package uses a Microsoft Windows Installer package to install the hotfix package. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

For the .NET Framework 2.0 SP2 on
Windows Server 2003 and Windows XP, 32-bit edition
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.44685,025,79202-Aug-201021:31x86
For the .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP, 64-bit edtion
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.44685,025,79202-Aug-201021:02x64
For the .NET Framework 2.0 SP2 on Windows Server 2003 and Windows XP, IA-64 edition
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.44685,025,79202-Aug-201021:02IA-64
For the .NET Framework 2.0 SP2 on Windows 7.0, 32-bit edition
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.50235,025,79219-Aug-201022:30x86
For the .NET Framework 2.0 SP2 on Windows Server 2008 R2 and Windows 7.0, 64-bit edtion
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.50235,025,79219-Aug-201022:32x64
For the .NET Framework 2.0 SP2 on Windows Server 2008 R2, IA-64 edition
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.windows.forms.dll2.0.50727.50235,025,79219-Aug-201022:24IA-64


STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
  • Microsoft .NET Framework 3.5 Service Pack 1
Keywords: 
kbqfe kbhotfixserver kbfix kbexpertiseinter kbsurveynew kbdevelopment KB2263779
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate