oscar-broman / PAWN-Boilerplate

(discontinued) Solid core for a big SA-MP server script.
http://sa-mp.com/
24 stars 13 forks source link

compiler.lock file trouble #29

Open HB-2012 opened 11 years ago

HB-2012 commented 11 years ago

I suggest to remove it. It brings alot of issues.

  1. It isn't visible in Windows. The file can only be deleted by using the command prompt.
  2. It very often gives you an error that the file still exists, but it doesn't.

It's rather annoying to run into this bug all the time.

oscar-broman commented 11 years ago

I'll have to make it contain the process ID and look for that.

How often does it happen? Is it when you compile a few seconds after previously compiling, or just randomly?

HB-2012 commented 11 years ago

It happens randomly, and quite often. I'd say around 50 percent of the time.. I'm used to compiling alot, so I can't really tell you anything about the delay between compiles.

oscar-broman commented 11 years ago

Well, the compiler is running an additional 2 seconds after it finished compiling (generating Notepad++).

Worth mentioning is the reason it's there is to prevent things from getting screwed up - if the script is running twice at the same time, bad things could happen.

Jameskmonger commented 11 years ago

If you click the "x" to close the compiler mid-compilation, you get locked out of the compiler

HB-2012 commented 11 years ago

I've now generated another custom .bat script which removes the .lock file when this happens. I am forced to use the command line to remove the lock file.

It isn't really necessary to remove it, but I do suggest making it easier to 'fix' this bug when it occurs. Anyone that doesn't know IT very well might get frustrated with this issue, as there is no way to delete it easily.