Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: ObjectDisposedException exception when you run a load test in Visual Studio 2010 and in Test Manager 2010


View products that this article applies to.

Assume that you run a load test in Microsoft Visual Studio 2010 or in Microsoft Test Manager 2010. Additionally, assume that the network is unstable, and there are multiple reconnections between a test controller and test agents during the load test. In this situation, the test controller (QTController.exe) may crash and an ObjectDisposedException exception may occur. Additionally, the following error is written to the event log:

Object Disposed Exception:
(QTController.exe, PID Number, Thread Number) Exception data being reported in Watson: Exception: ObjectDisposedException
Message: Safe handle has been closed


↑ Back to the top


Resolution

Hotfix information

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

To resolve this problem, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website: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.

Prerequisites

To apply this hotfix, you must have Visual Studio 2010 Service Pack 1 (SP1) installed.

Restart requirement

You do not have to restart the computer after you install the hotfix if the affected files are not being used. We recommend that you close all Visual Studio 2010-related components before you install the hotfix.

File information

The global 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 item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Codeduitestbuilder.exe10.0.40219.44076,87213-Feb-20132:52x86
Qtcontroller.exe.configNot applicable5,50512-Sep-20121:46Not applicable
Leviewer.exe10.0.40219.440118,32013-Feb-20132:52x86
Microsoft.teamfoundation.build.client.dll10.0.40219.440436,35211-Feb-201312:11x86
Microsoft.teamfoundation.build.controls.dll10.0.40219.4401,365,10413-Feb-20132:52x86
Microsoft.teamfoundation.client.dll10.0.40219.4401,595,48811-Feb-201312:11x86
Microsoft.teamfoundation.common.dll10.0.40219.440525,40811-Feb-201312:11x86
Microsoft.teamfoundation.common.library.dll10.0.40219.440334,96011-Feb-201312:11x86
Microsoft.teamfoundation.controls.dll10.0.40219.440938,59213-Feb-20132:52x86
Microsoft.teamfoundation.dll10.0.40219.440675,42411-Feb-201312:11x86
Microsoft.teamfoundation.lab.activities.dll10.0.40219.440772,72013-Feb-20132:52x86
Microsoft.teamfoundation.lab.client.dll10.0.40219.440153,20811-Feb-201312:11x86
Microsoft.teamfoundation.lab.uiutils.dll10.0.40219.440266,85613-Feb-20132:52x86
Microsoft.teamfoundation.lab.workflow.activities.dll10.0.40219.440440,44813-Feb-20132:52x86
Microsoft.teamfoundation.officeintegration.common.dll10.0.40219.440376,45613-Feb-20132:52x86
Microsoft.teamfoundation.officeintegration.project.dll10.0.40219.440517,25613-Feb-20132:52x86
Microsoft.teamfoundation.sync.mapping.dll10.0.40219.44072,29613-Feb-20132:52x86
Microsoft.teamfoundation.sync.provisioning.dll10.0.40219.440194,16813-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.activities.common.dll10.0.40219.440315,03213-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.activities.dll10.0.40219.4401,512,07213-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.activityruntime.dll10.0.40219.440219,79213-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.client.dll10.0.40219.440685,20011-Feb-201312:11x86
Microsoft.teamfoundation.testmanagement.client.themes.dll10.0.40219.4403,059,34413-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.client.wpfcontrols.dll10.0.40219.440257,68813-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.clientpackage.dll10.0.40219.44073,87213-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.common.dll10.0.40219.44034,44811-Feb-201312:11x86
Microsoft.teamfoundation.testmanagement.controller.dll10.0.40219.440120,96813-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.controls.dll10.0.40219.440496,25613-Feb-20132:52x86
Microsoft.teamfoundation.testmanagement.controls.wpfworkitemcontrols.dll10.0.40219.440100,01613-Feb-20132:52x86
Microsoft.teamfoundation.versioncontrol.client.dll10.0.40219.440706,19211-Feb-201312:11x86
Microsoft.teamfoundation.versioncontrol.common.dll10.0.40219.440233,10411-Feb-201312:11x86
Microsoft.teamfoundation.versioncontrol.controls.dll10.0.40219.4404,439,16813-Feb-20132:52x86
Microsoft.teamfoundation.workitemtracking.client.dll10.0.40219.440699,00811-Feb-201312:11x86
Microsoft.teamfoundation.workitemtracking.controls.dll10.0.40219.4401,215,11213-Feb-20132:52x86
Microsoft.teamfoundation.workitemtracking.proxy.dll10.0.40219.440390,80011-Feb-201312:11x86
Microsoft.visualstudio.coverage.analysis.4.0.dll10.0.40219.440147,57613-Feb-20132:52x86
Microsoft.visualstudio.coverage.analysis.dll10.0.40219.440142,96013-Feb-20132:52x86
Microsoft.visualstudio.coverage.interop10.0.40219.440553,58413-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.agentobject.dll10.0.40219.440107,13613-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.agentprocessmanager.dll10.0.40219.440105,61613-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.codecoverage.dll10.0.40219.440146,04813-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.common.dll10.0.40219.4401,356,92013-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.controller.spooledjob.dll10.0.40219.44037,01613-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.controllerobject.dll10.0.40219.440279,17613-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.datacollectionagentobject.dll10.0.40219.44037,02413-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.executioncommon.dll10.0.40219.440482,95213-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.resource.dll10.0.40219.440966,77613-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.testcasemanagement.dll10.0.40219.4401,284,75213-Feb-20132:52x86
Microsoft.visualstudio.qualitytools.tmi.dll10.0.40219.440398,96013-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.build.dll10.0.40219.440142,45613-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.dll10.0.40219.44093,80013-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.teamexplorer.dll10.0.40219.440799,88013-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.44059,04013-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.44059,53613-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.44061,07213-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.44061,08813-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.44063,64813-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.versioncontrol.dll10.0.40219.440940,16813-Feb-20132:52x86
Microsoft.visualstudio.teamfoundation.workitemtracking.dll10.0.40219.440460,94413-Feb-20132:52x86
Microsoft.visualstudio.teamsystem.integration.dll10.0.40219.440193,15213-Feb-20132:52x86
Microsoft.visualstudio.teamsystem.licensing.dll10.0.40219.44032,88813-Feb-20132:52x86
Microsoft.visualstudio.testtools.configcore.dll10.0.40219.440290,42413-Feb-20132:52x86
Microsoft.visualstudio.testtools.manualtest.common.dll10.0.40219.440813,19213-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.codegeneration.dll10.0.40219.440155,79213-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.common.dll10.0.40219.440178,30413-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.dll10.0.40219.440195,72013-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.ie.communication.interop.dll10.0.40219.440119,46413-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.ie.communication.interop.dll10.0.40219.440143,04013-Feb-20132:52x64
Microsoft.visualstudio.testtools.uitest.extension.ie.dll10.0.40219.440320,13613-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.ie.eventhelper.dll10.0.40219.44082,08813-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.ie64.eventhelper.dll10.0.40219.44082,08813-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.msaa.dll10.0.40219.440115,85613-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.extension.uia.dll10.0.40219.440110,22413-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.framework.dll10.0.40219.44057,99213-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.playback.dll10.0.40219.44066,17613-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitest.recorder.dll10.0.40219.440233,60013-Feb-20132:52x86
Microsoft.visualstudio.testtools.uitesting.dll10.0.40219.440391,28813-Feb-20132:52x86
Msdiff.dll10.0.40219.440485,44013-Feb-20132:52x86
Mtm.exe10.0.40219.440449,57613-Feb-20132:52x86
Qtagent.exe10.0.40219.44021,55213-Feb-20132:52x86
Qtagent.exe10.0.40219.44021,56013-Feb-20132:52x86
Qtagent32.exe10.0.40219.44021,55213-Feb-20132:52x86
Qtagent32.exe10.0.40219.44021,56013-Feb-20132:52x86
Qtagentservice.exe10.0.40219.440100,92813-Feb-20132:52x86
Rpfplayback.dll10.0.40219.440482,47213-Feb-20132:52x86
Testcontrollerconfig.exe10.0.40219.44031,30413-Feb-20132:52x86
Tf.exe10.0.40219.440325,67213-Feb-20132:52x86

↑ Back to the top


Status

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

↑ Back to the top


Call Stack information


at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success)
at System.StubHelpers.StubHelpers.SafeHandleAddRef(SafeHandle pHandle, Boolean& success)
at Microsoft.Win32.Win32Native.ResetEvent(SafeWaitHandle handle)
at System.Threading.EventWaitHandle.Reset()
at Microsoft.VisualStudio.TestTools.Controller.ControllerExecution.ReleaseAgent(AgentMachine agent)
at Microsoft.VisualStudio.TestTools.Controller.ControllerObject.SetAgentConnectionStateInternal(String agentName, Boolean online)
at Microsoft.VisualStudio.TestTools.Controller.ControllerObject.AgentTimeoutHandler(Object sender, AgentNameEventArgs args)
at Microsoft.VisualStudio.TestTools.Controller.AgentManager.ConnectionTimeoutHandler(ConnectionEventArgs e)
at Microsoft.VisualStudio.TestTools.Common.ConnectionManager`1.UpdateTimer()
at Microsoft.VisualStudio.TestTools.Common.ConnectionManager`1.DueTimeExpired(Object o)
at System.Threading._TimerCallback.TimerCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading._TimerCallback.PerformTimerCallback(Object state)

↑ Back to the top


Keywords: kbqfe, kbhotfixserver, kbfix, kbsurveynew, kbexpertiseadvanced, kbhotfixdev, kb

↑ Back to the top

Article Info
Article ID : 2780448
Revision : 1
Created on : 1/7/2017
Published on : 4/26/2013
Exists online : False
Views : 294