...

View Full Version : the process cannot access the file because it is being used by another process



dammyg
10-03-2012, 09:47 AM
Hi, I am new to the forum. I hope to be here a while, and hopefully I can improve a bit to help contribute in return.:)

I am quite new to JavaScript but do have some experience in basic programming.
I am trying to test out my JavaScript in Chrome by modifying the code in the notepad and then opening and refreshing in Chrome, but occasionally I get this error when trying to save the script in notepad: "the process cannot access the file because it is being used by another process". Nothing seems to get rid of this error, it is a real pain, what can I do? It really is a pain while trying to improve and test out my scripts:(

Thanks

shyagrawal
10-03-2012, 10:02 AM
Use this to fix this error.
http://www.faultwire.com/solutions-Windows_7/Notepad-*1412.html

xelawho
10-03-2012, 03:01 PM
better: get a decent editing program. I like notepad++ (http://notepad-plus-plus.org/)

dammyg
10-04-2012, 01:35 AM
Use this to fix this error.
http://www.faultwire.com/solutions-Windows_7/Notepad-*1412.html

Hi, thank you for the help.
The first I did was try closing Chrome, but that does not solve the problem. Is the JavaScript being executed by another process?
Does the process not ending mean that there is an error in the JavaScript code?

dammyg
10-04-2012, 01:36 AM
better: get a decent editing program. I like notepad++ (http://notepad-plus-plus.org/)

Hi, thanks for the help.
I didn't think this would be fixed by using a better application, but I'll give it a go, thanks.

dammyg
10-04-2012, 02:01 AM
better: get a decent editing program. I like notepad++ (http://notepad-plus-plus.org/)

Hi, I tried this out, but it doesn't change anything.
I think I need a way to stop the JavaScript process.
Does anyone have any ideas?

Thank you

xelawho
10-04-2012, 03:13 AM
maybe you should post the code that is causing the problem?

dammyg
10-05-2012, 01:21 AM
maybe you should post the code that is causing the problem?

I managed to solve the problem.
The code was for uploading a csv file and parsing it.
I think the main problem was I was uploading the file and processing it and then when trying out an update JS, I would refresh. I know instead highlight the address in the address bar and press enter and so have not encountered the problem again.
When I did have the problem, I closed Explorer.exe and the problem seemed to stop.

Thanks for your help.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum