Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: The process cannot access the file because it is being used by another process?

by Marshall (Canon)
on Apr 28, 2016 at 02:07 UTC ( [id://1161718]=note: print w/replies, xml ) Need Help??


in reply to The process cannot access the file because it is being used by another process?[Problem disappeared!]

I have also been unable to replicate this on my Win XP laptop. This appears to be some kind of weird Windows problem. The "answer" may some some kind of kludge that sets Window's brain straight? The DATA handle is a weird critter that is essentially a file handle to the current .pl program at a particular byte offset. I am wondering if you are able to seek (DATA,0,0) or die "seek failed $!"; prior to reading from DATA? This trick allows a Perl program to read itself. This might help "un-confuse" the file system, but because I can't replicate the problem, I have no way to test this. It is for sure a weird idea that shouldn't matter, but it might. oh, I'm using Perl 5.22 on a Win XP laptop.
  • Comment on Re: The process cannot access the file because it is being used by another process?
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1161718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-04-19 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found