Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9204777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:47:27+00:00 2026-06-17T23:47:27+00:00

I am using Visual Studio 2010 creating a XNA application with the Kinect SDK

  • 0

I am using Visual Studio 2010 creating a XNA application with the Kinect SDK 1.6. I have a problem that the build usually fails (not always) after debugging the application. There is a process that is locking KinectDrobePrototype1.exe.

Error 12 Unable to copy file "obj\x86\Debug\KinectDrobePrototype1.exe" to 
"bin\x86\Debug\KinectDrobePrototype1.exe". The process cannot access the file
'bin\x86\Debug\KinectDrobePrototype1.exe' because it is being used by another
process.

Error 11 Could not copy "obj\x86\Debug\KinectDrobePrototype1.exe" to
"bin\x86\Debug\KinectDrobePrototype1.exe". Exceeded retry count of 10. Failed.  

I have used Process Explorer which tells me it is the System process.

Process  |  PID  |  Type  |  Name
System       4      File     C:\Users\ ... \KinectDrobePrototype1\KinectDrobePrototype1\KinectDrobePrototype1\bin\x86\Debug\KinectDrobePrototype1.exe

I have seen similar posts like this but it hasn’t helped. I feel that there must be something in my application that still has a handle on something. I know for certain that when the application terminates the following code executes within my KinectManager class.

public void CleanUp()
{
    if (ActiveKinectDevice != null)
        UnintialiseDevice(ActiveKinectDevice);
}

private void UnintialiseDevice(KinectSensor device)
{
    device.Stop();

    device.ColorStream.Disable();
    _ColourPixelData = null;

    device.DepthStream.Disable();
    _DepthPixelData = null;

    device.SkeletonStream.Disable();
    _SkeletonData = null;
}

I am very new to XNA so it possible that there is something I have not done. On the UnloadContent I have the following:

protected override void UnloadContent()
{
    _KinectManager.CleanUp();
    _DrawingManager.CleanUp();           
}

And then in my DrawingManager class I dispose of the few textures I have used, my SpriteBatch and GraphicsDevice:

public void CleanUp()
{
    HandIcon.Dispose();
    JointIcon.Dispose();
    _ColourImage.Dispose();
    _DepthImage.Dispose();

    _SpriteBatch.Dispose();
    _GraphicsDevice.Dispose();           
}

Has anyone got any suggestions? Or is there an obvious mistake that I have made?

Edit 1: I forgot to mention that I am using the polling method for the Kinect, which is why I have not unregistered for any events.

Edit 2: For clarification, the System process does release the file eventually – it does not stay locked. I think this usually takes between one to two minutes.

Update 1: I do have antivirus software installed. I have disabled it but it has not solved the issue.

Update 2: I can confirm this is a problem specific to my desktop machine. I am yet to reproduce the problem on my laptop.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T23:47:28+00:00Added an answer on June 17, 2026 at 11:47 pm

    I found a discussion on a forum with the title ‘System process “anomaly”‘.

    This is taken from Jblom1986’s post. His solution solved my problem. To make the changes go to the services tab using msconfig.exe.

    “When the windows service named ‘Application Experience’ (a service which when something crashes finds a solution in the microsoft database) is turned off, another service named ‘Search Indexer’ (a service which is responsible for quickly finding files on a drive by indexing them) starts to malfunction. As a result, windows locks anything you have moved, copied or used for a few minutes to ‘index’ this file before releasing it after which you can delete that same file. It locks it with Process ID number 4 (PID:4)”.

    Edit: This was on a Windows 7 machine. I’m not sure if other versions of Windows have this error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating an application using Visual Studio 2010 C#. I have a string in-line
I'm creating an application in C# using Visual Studio 2010/.NET 4.0. For part of
I am new in creating application using Visual Studio 2010 and Microsoft Access 2007.
I'm using Visual Studio 2010 and WPF. I'm creating a new Control that inherits
I am currently creating a WCF service application using Visual studio 2010. Is it
I am creating a C# windows form application using Visual Studio 2010. The end
I have tried creating several web parts using Visual Studio 2010 using available guides
I am creating a Windows Forms Application using Visual Studio 2010. I populate data
I am new in creating application using Visual Studio 2010 C#. I am creating
I've been creating an application using Visual Studio 2010 C# and Microsoft Access 2007.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.