BASIC

Author Topic: *** ERROR - Can't overwrite program. Is it still running? -- SOLVED  (Read 2964 times)

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
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.
« Last Edit: 2016-Dec-30 by monkeybot1968 »

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2598
    • View Profile
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.
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
No not either of those,Kiling the IDE doesn't help ,I think something is locking the file.

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 908
  • 96A285CC
    • View Profile
    • my youtube channel

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
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

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
« Last Edit: 2016-Dec-30 by monkeybot1968 »

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
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
 

Offline Marmor

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 908
  • 96A285CC
    • View Profile
    • my youtube channel
its mousewait . you need a mouse with autofire 😄

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
It isn't those commands it appears to be random,I have reverted to previous version.

Offline UBERmonkeybot

  • Mr. Polyvector
  • ***
  • Posts: 243
    • View Profile
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...
« Last Edit: 2016-Dec-30 by monkeybot1968 »