OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: karotlopj on June 18, 2016, 09:45:00 am

Title: Sharing violation
Post by: karotlopj on June 18, 2016, 09:45:00 am
When trying to delete a file I get a sharing violation. How do I identify which process is using that file?

I can't remember which program displays a list of processes and the files they have open. I'm sure there was one...
Title: Re: Sharing violation
Post by: ivan on June 18, 2016, 01:04:00 pm
There are several depending on if you need a PM or VIO program.

I've attached Task Buster (PM) it is small and does the job usually.  Put the two together in a dir on the libpath  then just run buster.exe (I have a program object for it).
Title: Re: Sharing violation
Post by: karotlopj on June 19, 2016, 11:34:38 am
Thanks, Ivan.

I'll have a look at the program you mentioned....

I did find out what the problem was... It appears that emxload keeps some programs in memory so can't be deleted.

The solution is to run 'emxload -q'.