by Parkgrr » Fri Jan 27, 2023 10:46 pm
Thanks for jumping in to help guys
I shut down correctly every time unless UCCNC freezes which seems to be happening with increasing frequency. This does not refer to those times.
@Dezsoe, I just sent you my constructor/destructor. If you see some line that would error out I'm happy to be schooled. It is a series of Getcheckboxstates and Getfields + my tool change macro is contained in an 'if' to return the tool to the tool changer if there is one in after asking permission in a dialog. It is 5/10 times that on shutdown that I click "yes" on the dialog but the macros do not run (so M99999 fires the dialog but does nothing else), it is also 5/10 times I open UCCNC after a correct shutdown and none of the fields handled by my M99999 are populated, WCS is wrong, etc. I have error handling in the tool change macro that pops a status message if there is an error but none is thrown. If there is an error would that explain half of my profile being deleted upon proper shutdown?
@Balazs, the mass profile line delete occurred during a completely normal shutdown. After shutting down UCCNC properly I shutdown the PC using the 'shut down' button on windows, then only cut power once the PC is totally powered down. I will use the profile backup plugin.
@Battwell, thanks for the thoughts. "i now save anything required in profile as its changed by my macros." You are doing profile saves in individual macros rather than the destructor? Do you feel like UCCNC is idiot proof? I seem to be dealing with a UCCNC problem every day.