Author Topic: Build project failed  (Read 1428 times)

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
Build project failed
« on: June 29, 2015, 08:03:39 AM »
Warning   8   Could not copy "C:\AdvancedHMIBetaV369\AdvancedHMIDrivers\bin\Debug\AdvancedHMIDrivers.dll"
to "bin\Debug\AdvancedHMIDrivers.dll". Beginning retry 8 in 1000ms. The process cannot access the file
 'bin\Debug\AdvancedHMIDrivers.dll' because it is being used by another process.   AdvancedHMI

Whats up?
There is no proces that use that .dll. No previous version of AdvHMI  running.
Why?
KariM

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Build project failed
« Reply #1 on: June 29, 2015, 08:13:35 AM »
Exit Visual Studio and re-open. That will release the file.

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Build project failed
« Reply #2 on: June 29, 2015, 09:44:40 AM »
OK, Thanks
I did restart computer. Same result.
So next time just restart VS?
KariM
Feels funny to restart VS after every editing. And stil no help!
Only restart computer helps.
« Last Edit: June 29, 2015, 09:49:44 AM by KariM »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Build project failed
« Reply #3 on: June 29, 2015, 09:52:29 AM »
When you run the app within Visual Studio be sure not to close the app by using the Stop button in VS. When doing that, the background threads are not shut down properly.

AabeckControls

  • Full Member
  • ***
  • Posts: 193
    • View Profile
Re: Build project failed
« Reply #4 on: June 30, 2015, 11:27:34 PM »
If not to use the Stop button in VS, what is the proper way to stop the app?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Build project failed
« Reply #5 on: June 30, 2015, 11:36:27 PM »
If you still have a border on your form, then use the X. If not, then add a button to the form, double click, then enter Close()

One trick I use for deployed apps with no form border is to setup an event to handle the AdvancedHMI logo being double clicked.

    Private Sub PictureBox1_DoubleClick(sender As Object, e As EventArgs) Handles PictureBox1.DoubleClick
        Close()
    End Sub

KariM

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Build project failed
« Reply #6 on: August 18, 2015, 07:46:43 AM »
Hi Archie
Vacations over.
And thank you answering. I found with task manager (in XP) that ADVHMI was still running.
My next question would have been same that AabeckControls asked, and answer is good for my purpose.
KariM