EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.betatest » Hooray! File locking has been removed
Hooray! File locking has been removed [message #160721] Tue, 05 May 2015 23:46 Go to next message
warrenbrayshaw
Messages: 1750
Registered: January 2010
Location: New Zealand
Senior Member
Good to see it has been removed.

Yesterday I decided to use beta 7.2.1 to create a ULP.
I soon discovered the new file locking, it caused me grief.
I noted in the release notes that this was a new feature.
I noted I could use the SET command to disable/enable it.

My concern is that there will be some ULPs that will need updating because of this file locking.
Some new ULPs will need to detect the version being run and and turn it off.

What needs to happen:
If you open one of a sch/brd pair that file is owned and its matching file is also owned.

Now if you close one of them, both need to stay owned.
Only when you close both do you release them to others.

The issue that plagued me was a ULP that closes one editor, does a quick change on the other and then reopens the first. The file would alert to being locked as it appeared it was not unlocked quickly enough and so that I could re-own it. This required manually getting part this point in the ULP and defeated the automation afforded by the ULP.

So for what ever reason you have withdrawn it, for now, improve the ownership before putting it back.

Regards
Warren


Re: Hooray! File locking has been removed [message #160733 is a reply to message #160721] Wed, 06 May 2015 09:25 Go to previous message
Walter Spermann
Messages: 540
Registered: August 2010
Senior Member
Hi,

On 05/06/2015 01:46 AM, Warren Brayshaw wrote:
> Good to see it has been removed.
>
> Yesterday I decided to use beta 7.2.1 to create a ULP.
> I soon discovered the new file locking, it caused me grief.
> I noted in the release notes that this was a new feature.
> I noted I could use the SET command to disable/enable it.
>
> My concern is that there will be some ULPs that will need updating because
> of this file locking.

> Some new ULPs will need to detect the version being run and and turn it
> off.
it is supposed to work this way: if a foreign lock is detected a lock warning message comes,
where earlier EAGLE just continued with the risk of overwriting changes of someone else
or vice versa.
In that case an existing ULP, playing with several EAGLE editors resp. files
would get interrupted. But would you prefer that it just continues in that case ?
We need to make sure it works reliably, of course. Currently it's not mature yet.

>
> What needs to happen:
> If you open one of a sch/brd pair that file is owned and its matching file
> is also owned.
>
> Now if you close one of them, both need to stay owned.
> Only when you close both do you release them to others.
Our current approach only considers the files loaded in an editor.
OK, if a user edits e.g. x.sch, he wants no one else to change x.brd,
even if x.brd is currently closed.
OTOH, typically you have both open to benefit from f/b annotation.
We take this into consideration.

>
> The issue that plagued me was a ULP that closes one editor, does a quick
> change on the other and then reopens the first. The file would alert to
> being locked as it appeared it was not unlocked quickly enough and so that
> I could re-own it. This required manually getting part this point in the
> ULP and defeated the automation afforded by the ULP.
>
> So for what ever reason you have withdrawn it, for now, improve the
> ownership before putting it back.
OK, we'll look into this.

Regards,
Walter Spermann
>
> Regards
> Warren
>
>
>
>


--
--------------------------------------------------------------------------- -------------------------------
Walter Spermann
Software Development
CadSoft Computer GmbH
Pleidolfweg 15
84568 Pleiskirchen
Tel.: 08635/6989-10
www.cadsoft.de
--------------------------------------------------------------------------- -------------------------------
Registergericht: Amtsgericht Traunstein HRB 5573
Geschäftsführer: Mark Whiteling
--------------------------------------------------------------------------- -------------------------------
Previous Topic: 32bit 7.2.1 crashes on startup when passing link to eaglerc via -U
Next Topic: Beta version 7.2.3 available
Goto Forum:
  


Current Time: Mon Jun 26 05:26:37 GMT 2017