v2kiran / PSLiteDB

PowerShell wrapper for LiteDB
MIT License
52 stars 6 forks source link

Getting an error Process is used by another process #18

Open ghost opened 2 years ago

ghost commented 2 years ago

I am using PSLiteDB in my Project, it is awesoem and helpful for my Project. But there is one bug. As mentioned that LiteDB is locked unless we Close the connection. Sometimes, even when i try to open the Open-LiteDBConnection still showing that Process is used by another process. And Even try to close using Close-LiteDBConnection but it shows that no Open-LiteDBConnection Found.

Please guide me where i'm doing wroung.

Thank you

v2kiran commented 2 years ago

Hi I am not sure how you are using this module but I suspect a process such as ps might have opened a connection and still be running in the background...use Ps explorer to find out which process has locked the file.