GLBasic forum

Main forum => Bug Reports => Topic started by: UBERmonkeybot on 2016-Dec-29

Title: *** ERROR - Can't overwrite program. Is it still running? -- SOLVED
Post by: UBERmonkeybot on 2016-Dec-29
It was something to do with search indexing in windows 7 so i removed all referenced to my code folder.
 :enc:


******************************************************************************


This is a very strange problem,I think it is with my system but i am stumped,Skip to the last entry.I will leave the trail up.



I am getting this error after upgrading to 14.497.


linking:
Access is denied.

*** ERROR - Can't overwrite program. Is it still running?
_______________________________________
*** Finished ***
Elapsed: 2.8 sec. Time: 15:11
Build: 0 succeeded.
*** 1 FAILED ***


I cannot see the file in taskmanager and i cannot delete the .exe from the  .app folder if i clean the project it works sometimes but generally i have to kill explorer.
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: bigsofty on 2016-Dec-29
Are you doing anyone in inline C or using the thread library? I have come across this only a couple of times, it can be the GLBasic IDE stuck in debug in the background usually caused by killing off a task it was debugging using the task manager.
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-29
No not either of those,Kiling the IDE doesn't help ,I think something is locking the file.
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: Marmor on 2016-Dec-30
wholockme  or http://lockhunter.com/

gtx
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-30
Thanks Marmor,I tried that before i saw your mail and it is just reporting that SYSTEM is locking the file and reports that my .exe is what is locking my .exe so i can't unlock it. :S
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-30
 :shit:
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-30
Upon further investigation i have found that SLEEP and MOUSEWAIT cause this to happen.


Code: (glbasic) [Select]
LOCAL q=0
REPEAT
INC q
PRINT q,100,100

SHOWSCREEN
// SLEEP 50
// MOUSEWAIT
UNTIL FALSE
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: Marmor on 2016-Dec-30
its mousewait . you need a mouse with autofire 😄
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-30
It isn't those commands it appears to be random,I have reverted to previous version.
Title: Re: *** ERROR - Can't overwrite program. Is it still running?
Post by: UBERmonkeybot on 2016-Dec-30
I have spent hours trying to work out why this is happening.

I have uninstalled Comodo and anything else i thought might be weirdly interacting with files.

Taken everything out of my startup,disabled all the services i could.

I have reverted to an older GLB 14.106

No change it appears to be entirely random and i cannot work out when or why it is happening,It looks like it might well be  a problem with my system and not  a GLB Bug.

It appears that if i don't try a compile for a few mins it works.

I am now totally out of ideas...