Page 1 of 1

Win 10; PB will not overwrite exe

Posted: Tue Oct 15, 2019 9:53 pm
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!

Re: Win 10; PB will not overwrite exe

Posted: Tue Oct 15, 2019 10:10 pm
by Little John
Try compiling with your anti-virus software disabled.
Do you encounter the same issue then?

Re: Win 10; PB will not overwrite exe

Posted: Tue Oct 15, 2019 10:37 pm
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.

Re: Win 10; PB will not overwrite exe

Posted: Tue Oct 15, 2019 10:42 pm
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.

Re: Win 10; PB will not overwrite exe

Posted: Wed Oct 16, 2019 4:44 am
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. :-)

Re: Win 10; PB will not overwrite exe

Posted: Wed Oct 16, 2019 5:48 am
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.