Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Why use error code 43 for shutdown?

Solved!
Go to solution

Why does AF use error code 43 for shutdown?  This error code is for Operation cancelled by user: http://zone.ni.com/reference/en-XX/help/371361J-01/lverror/misc_lv_error_codes/

This means we can't handle for "the real" error 43.

An emergency shutdown is error code 1608 which is unique.  Now that makes more sense to me?

Greetings from the UK

Lewis

0 Kudos
Message 1 of 3
(4,475 Views)
Solution
Accepted by topic author lewboi

An admitted mistake on my part that cannot be fixed at this date without breaking backward compatibility.  For a normal shut down, I used the Cancel Error because it seemed the same purpose. I should have created a new unique error code for this. Too late now. If we deprecate the entire Actor Framework in favor of Actor Framework 2 (which is not the same as 2.0 ... this would be AF2 1.0... we would be shipping both with LabVIEW if we went that route, one marked as deprecated but still totally supported) that's the kind of issue we would fix. I have no plans for an AF2 in the next few years.

FYI : There luckily aren't many APIs in LabVIEW that return 43. If you have one of those and you emit it, you need to translate it before you return it from your function to some unused error code that you give the same "user cancelled" text description.

0 Kudos
Message 2 of 3
(3,564 Views)

Thank you AristosQueue

0 Kudos
Message 3 of 3
(3,564 Views)