I am working on a bug just now where the following snippet of code is causing the file to be locked.What file?
I have found that forcing a garbage collection releases the lock.What lock?
I have also found that if I change the declaration of header to be any string instead of calling connection.getHeaderField() stops the file from being locked.What file? What lock?
I have been trying to find a nice way to release the lockWhat lock?
as I would prefer not to use a gc if I can avoid it, but I have had no luck so far.That's not surprising. On this evidence there is no file and no lock.
amitphule wrote:Why the h�ll are you resurrecting this old thread to ask an unrelated question?? And why are you trying to use Java in a way that it is not intended for? No, don't answer that question. If you really want help here, you will start your own thread.
I am an engneering student & i need code to lock WINDOWS XP2 from java language.
please help me...