Results 1 to 8 of 8

Thread: [2005] program refuses to start in IDE

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    263

    [2005] program refuses to start in IDE

    I have a program that often refuses to start from the IDE. Without changing anything in my code, I quit and restart the IDE 5-10 times and suddently it allows me to compile and run my program.

    When it refuses, I get the error "The operation could not be completed. Teh process cannot access the file because it is being used by another process.". If I try a second time without quitting the IDE, I get the error "Visual Studio could not copy a support file to this location: 'S:\DotNet-Apps\MyProg\bin\Debug\MyProg.vshost.exe'. Please verify the path exists and is writable."

    I am 100% that I am the only one working in this program, so it cannot be locked by another user.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] program refuses to start in IDE

    If you moved the project to a local drive and off the network, does the problem go away?

    It could be network traffic. Is your project on a busy server?

  3. #3
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: [2005] program refuses to start in IDE

    You cannot able to run ur VS program from Network Drive(You can able to run with restricted access). U Have to copy the program to a local folder and then only it will run. Or try this one from bmahler
    Please mark you thread resolved using the Thread Tools as shown

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    263

    Re: [2005] program refuses to start in IDE

    My computer is very powerfull with lots of memory (WinXP). The server is really nor busy. I suspect it could be something that doesnot free up a resource properly when I quit my program, but I cannot put my finger on it.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] program refuses to start in IDE

    Just try running it locally and see if there is any difference.

    I'm not suggesting "moving" the source code, just copy the solution files, run a test or two, and then you can always delete it from your local drive.

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    263

    Re: [2005] program refuses to start in IDE

    Ok, I did some more tests. If I run locally, I could never reproduce the problem.

    However I did notice a pattern when I compile my program from the network drive. If I run my program without any programming errors, it works fine as many times as I want. However if make a typing mistake (like var = truw) and I run the program, I get the warning telling me that the program has errors, I click on NO to abort, fix the error and try to run it again. That is where I get the error message. I usually need to start and exit the package a dozen times before I can run my program again. It looks like the failed compiled created some king of lock on my executable.

    It only happens if the package is located on a network drive. Has anyone experienced the same problem? Is there a solution (don't ask me not to make typing mistakes in my code ...)

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    263

    Re: [2005] program refuses to start in IDE

    Does VB.NET Professionnal Edition supports having the source files on a shared drive?

    We are two persons making changes to this program so it must reside on a network drive. Every time I make a change, the program refuses to start like if the executable was locked by another process (I know it is not the case). After quitting and restarting VB Studio about 10-15 times, my program finally starts.

    This is a very inefficient way to work, anybody knows a solution to share a source code beteen two persons?

  8. #8
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: [2005] program refuses to start in IDE

    Visual Source Safe....the source code then resides in the VSS database. When you need to make a change, you check it out to your local drive.... make changes, check it back in. Optionally at this point you can label it with what the change(s) were. Then when the other developer needs it, get the latest, etc.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width