Closed DanielAllis closed 3 years ago
Modified files attached DanielAllis Uninitialized Shutdown Modifications.zip
Thanks for the bug report and the modified VIs. I will look into integrating your VIs shortly.
FYI - I had added some bookmarked comments in my VIs to make sure I could track down the changes just in case. Those should be pulled out if you want to use as is.
@DanielAllis I see the bookmarks. A couple of comments,
Manager.vi
, nor bookmark free labels/comments. Were there any modification to the Manager.vi
, other than using the modified sub-VIs?Specific Error Code
functionality of the Clear Errors
VI cannot be used as it is not supported in LabVIEW 2010. It is probably time to bump the minimum supported version of LabVIEW from 2010 to 2015 or newer, but I have had users stuck on LabVIEW 2010. This is not really an issue for you or your modifications, but I wanted to make note for historical documentation.I feel this is more or less resolved as of 0c1836d10cf7ec0fbd25dbb02756940c80ffb9ba.
@DanielAllis Please let me know if it is okay to add you to the authors list. Once I get confirmation, I will create a new release (v1.10.2) with these changes. An updated VIP will be available here on Github, but it will take a while for it to be available on VIPM and the NI Tools Network.
- During the re-implementation, I did not see any changes in the
Manager.vi
, nor bookmark free labels/comments. Were there any modification to theManager.vi
, other than using the modified sub-VIs?
Sorry - The modification I was referring to is in the Support->File->Manager.vi: "Stop" case. This includes the conditional to avoid trying to close a file that doesn't exist. I've attached my annotated version for your reference.
- Is it okay to add you (@DanielAllis) to the authors list (Authors.txt) along with your email?
@volks73 That is perfectly fine.
In order to ensure there is no stray logger instance active (ensure a known good starting state), I call StopFile and Shutdown before initializing and starting logger during the initialization phase of my application. However, when I do this with the current library I encounter what could be considered unhandled exceptions (or properly thrown errors 😂). This is easy to simulate by calling StopFile & shutdown without an active, configured instance of logger present.
Proposed Changes: