Crash in KeyDown when custom control is in focus
Posted: 10 May 2023, 20:02
Created a custom component that extends UserControl and ICommandSource that is modeled off of BaseButton. We were seeing a crash in the KeyDown function in the noesis source code when raising the event to the focused component. We are thinking that the reason is because we did not include a destructor in our custom component so the command can still be executed even after our component object goes out of scope. Wondering if we could get some more clarity on whether this is likely the cause of the crash/are there other functions in the BaseButton that we need to implement as well to avoid problems like this?