On 07.09.2011 12:47, Rahkonen Jukka wrote:
> Edgar Soldin wrote:
>  
>> On 07.09.2011 11:58, Rahkonen Jukka wrote:
>>> Hi,
>>>
>>> Has this been discussed earlier? If shapefile is opened OJ 
>> it seems to keep it open even if the layer is deleted from a 
>> project or even if the whole project is closed. Only way to 
>> free shapefile for example to be deleted is to close the whole OJ.
>>>
>>
>> in theory the file handle should be closed as soon as it is 
>> loaded fully into a layer.
> 
> In practise it would be bad is someone edits a shapefile on a network drive 
> if someone else has it open in OpenJUMP on another computer. Or even if it is 
> open in another program on the same compurer. 

true, but current implementation should be as described, just checked the code.

>But once it is removed from all tasks/projects there should be no reason to 
>keep it open.
>  

would be elegant, but see above. Windows does some locking if files reside on 
network drives, but usually it is up to applications to take care of that. 
usually file datasources are read as whole and written as whole. if that is not 
the case, they are kept open for writing and locked by that.

as far as i can see shapefile code does the standard procedure here.

let's wait if someone can reproduce it and file a bug then.

regards ede

------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to