Win 10; PB will not overwrite exe

Everything else that doesn't fall into one of the other PB categories.
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Win 10; PB will not overwrite exe

Post by Tenaja »

So I finally started using PB on my Surface with W10 on it. (Was only using PB on w7 before this.) It will compile the files fine the first time, but then the exe stays in the directory, and the compiler refuses to delete or overwrite the exe. I get no errors, but only the "first compile" is executed, until I either exit PB and restart it, or I manually delete the file. That made debugging interesting.

I moved the source into a directory off of the c root, but that did not help. I moved it to a My Docs folder, and that did not help either.

Help? How can I avoid the requirement to manually delete the old EXE every time?

Thanks!
Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Win 10; PB will not overwrite exe

Post by Little John »

Try compiling with your anti-virus software disabled.
Do you encounter the same issue then?
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Re: Win 10; PB will not overwrite exe

Post by Tenaja »

I tried, and it did not.
I'm using Windows Security, which I've never used before. I followed googled instructions; turning off real-time protections.
User avatar
skywalk
Addict
Addict
Posts: 3972
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Win 10; PB will not overwrite exe

Post by skywalk »

I run Windows 10 Pro x64( but not on a Surface).
I get similar errors when:
a) I left an old version of the exe running.
b) A version of the exe crashed, but is still holding memory somewhere.
c) The IDE did not completely release a debugged version of the exe.

My antivirus experience produces different errors.
a) Not allowed to compile.
b) Ok to compile but not allowed to write to the user directory.
Whitelist the exe's in the PB install folder.
Add a whitelist 'c:\dev\' path for your development code.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Little John
Addict
Addict
Posts: 4519
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Win 10; PB will not overwrite exe

Post by Little John »

skywalk wrote:I get similar errors when:
a) I left an old version of the exe running.
b) A version of the exe crashed, but is still holding memory somewhere.
c) The IDE did not completely release a debugged version of the exe.
Yes. I assumed that these things were out of the question. :-)
User avatar
Tenaja
Addict
Addict
Posts: 1948
Joined: Tue Nov 09, 2010 10:15 pm

Re: Win 10; PB will not overwrite exe

Post by Tenaja »

I'm getting it with a short "debug 1" file.

Not so familiar with MS security, turning off real time protection seemed to do nothing. Could not find a white list anywhere. I'm just deleting the exe file for now, I'll see if I can track it down another day.
Post Reply