John Dowson Posted November 14, 2021 Report Posted November 14, 2021 Hi Leo, 14 hours ago, LeoSchoonbroodt said: Last entry in logs states that FSUIPC7 is waiting for the the lua to process the termination event. All this does is closing the Com Ports, sleep for 500 ms and then execute an ipc.exit() You don't/shouldn't call ipc.exit() in the terminate event function, as the thread is already terminating. Remove that, and also the sleep. Try that first, but if it continues to crash in the same place, try commenting out your event.terminate statement completely (so that the termination event isn't called) and let the thread be forcibly killed, when needed, instead. John
LeoSchoonbroodt Posted November 16, 2021 Author Report Posted November 16, 2021 Hi John, Just to keep You up to date, NO problems encountered anymore. Will report back if anything changes. Leo
John Dowson Posted November 16, 2021 Report Posted November 16, 2021 30 minutes ago, LeoSchoonbroodt said: Just to keep You up to date, NO problems encountered anymore. Ok, thanks - sounds good...what changes did you make? John
LeoSchoonbroodt Posted November 16, 2021 Author Report Posted November 16, 2021 8 hours ago, John Dowson said: Ok, thanks - sounds good...what changes did you make? John Only the ones you suggested, removing the ipc.exit() and ipc.sleep from the terminate event function. Leo
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now