cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

File remain locked even when closed in EPIC

ptc-930025
Newbie

File remain locked even when closed in EPIC

Hello,

Epic editeur 4.3, sometime, keep a lock on a recently edited file,
although the file is closed in EPIC (by the file/close menu option).
This deny any access to the file to some of our customization ACL
script.
This problem appears only on some workstation and we face difficulties
to understand why.

Does anybody already have encounter this problem or know a solution to
it ?

Any help would be helpful.

Dalila
Tags (2)
1 REPLY 1

Re: File remain locked even when closed in EPIC

We struggle with this too. IIRC, it's a known issue in the 4.x Epic series.

One way I attempted to address it was with a callback on doc_close() to
make sure that the lock file was removed. I wrote this as a prototype
and never put in into production, but it might give you some ideas.

FWIW, I think the issue is resolved in 5.x.

#######################################################################
# CAVEAT: CODE MAY CAUSE YOUR MACHINE TO MELTDOWN
function my_close_doc ()
{
local thisdobj = oid_encl_dobj(oid_caret());
local this_file = dobj_logicalid($thisdobj);
if ($this_file != $filename) {
$thisdobj = dobj_construct($filename);
$this_file = dobj_logicalid($thisdobj);
}
if ($this_file != $filename) {
mes "can't figure out which file this is!"\
"this_file is $this_file" "filename is $filename";
return 2;
}

local locked;
if ( dobj_is_my_lock($thisdobj) ) {
message "unlocking $this_file";
# just unlock it before closing
dobj_unlock($thisdobj);
file_close();
$locked = 1;
} else {
message "$this_file was NOT locked";
$locked = 0;
}
#file_close();
return $locked;
}

DALILA ABDELKADER wrote on 04/05/2005 08:20 AM:
> Hello,
>
> Epic editeur 4.3, sometime, keep a lock on a recently edited
> file, although the file is closed in EPIC (by the file/close menu option).
> This deny any access to the file to some of our customization ACL script.
> This problem appears only on some workstation and we face difficulties
> to understand why.
>
> Does anybody already have encounter this problem or know a solution to it ?
>
> Any help would be helpful.
>
> Dalila

--
Peter Karman . http://www.cray.com/craydoc/ . karman@cray.com
"I love deadlines. I love the whooshing sound they make as they go by."
- Douglas Adams


Announcements