I have an external script file which I have set to automatically recompile changes "always" so that it's faster to test and debug with an external editor.
The problem I'm encountering is that sometimes MUSH will report a sharing violation:
---------------------------
MUSHclient
---------------------------
A sharing violation occurred while accessing C:\data\games\Mush\worlds\scripts\functions.lua.
---------------------------
OK
---------------------------
This is most likely due MUSH trying to read from the file while my editor is still writing to it.
A workaround for this would be to retry on a delay (sleep every 10ms or so) and if there is still an access violation after say, 3-5 seconds then report the access violation.
The problem I'm encountering is that sometimes MUSH will report a sharing violation:
---------------------------
MUSHclient
---------------------------
A sharing violation occurred while accessing C:\data\games\Mush\worlds\scripts\functions.lua.
---------------------------
OK
---------------------------
This is most likely due MUSH trying to read from the file while my editor is still writing to it.
A workaround for this would be to retry on a delay (sleep every 10ms or so) and if there is still an access violation after say, 3-5 seconds then report the access violation.