Home > Community > Forums > PCB SKILL > Running programs killed by Undo and Update symbols

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Running programs killed by Undo and Update symbols 

Last post Mon, Sep 18 2006 7:10 AM by archive. 3 replies.
Started by archive 18 Sep 2006 07:10 AM. Topic has 3 replies and 1666 views
Page 1 of 1 (4 items)
Sort Posts:
  • Mon, Sep 18 2006 7:10 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Running programs killed by Undo and Update symbols Reply

    I wondered if anybody else has this problem.
    It happens when the program is running (the form is displayed), and I use Undo or Update symbols.
     
    Its usually a minor annoyance, except for one program that modifies color and visibility settings. When the program exits normally, the color and visibility settings are restored, but if the program stops abnormally, then they aren't restored.

    Does anybody know if this is a fixable problem, or can I put something in the code to detect this and exit gracefully?

    Thanks!

    - Geoff


    Originally posted in cdnusers.org by Geoffm
    • Post Points: 0
  • Mon, Sep 18 2006 7:31 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Running programs killed by Undo and Update symbols Reply


    Wrap the code throwing the error with the errset function. See the Error Handling section in the Skill User Guide.

    If an error is thrown then errset.errset will be non-nil


    Originally posted in cdnusers.org by fxf
    • Post Points: 0
  • Tue, Sep 19 2006 6:11 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Running programs killed by Undo and Update symbols Reply

    Thanks fxf

    Its going to take me awhile to check the errset function out. I have never used it before in Skill. I have used error trapping in Visual Basic, and it seems like it would be similar to Skill.

    Its hard to know where to start because, the program form is displayed but the program is not actively doing anything. So where would I put the errset function?

    Anyways I need to get my head into it.


    Originally posted in cdnusers.org by Geoffm
    • Post Points: 0
  • Tue, Sep 19 2006 2:11 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Running programs killed by Undo and Update symbols Reply


    If you create a function that calls makes several axl and Skill calls I would place the errset around that function.
    Placing it around individual axl or Skill APIs would not be a good programming style.

    Basically, it should be placed around a set of related programming like updating the database.


    Originally posted in cdnusers.org by fxf
    • Post Points: 0
Page 1 of 1 (4 items)
Sort Posts:
Started by archive at 18 Sep 2006 07:10 AM. Topic has 3 replies.