homepage › Forums › BridgePoint/xtUML Usage and Training › ARCH Shutdown problem › Reply To: ARCH Shutdown problem
OK. I see what you mean.
The short answer is, remove the “control stop;” OAL from inside the ARCH::shutdown EE bridge. It isn’t needed and is causing the extra code to be generated into the C function _after_ the return statement.
The normal use case for an EE is to translate the model to get (for example Machine_ARCH_Bridge.c), then copy Machine_ARCH_Bridge.c to your project’s gen/ folder and edit the C functions to perform whatever code actions you want, then next time you translate, your Machine_ARCH_Bridge.c will be copied into the src/ folder and compiled with the rest of the generated application.
I’ve opened a bug (https://support.onefact.net/issues/8543) to capture the original issue you raised.