bridgetfoote
Topic Author
Posts: 6
Joined: 10 May 2023, 18:52

Crash in KeyDown when custom control is in focus

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?
 
User avatar
sfernandez
Site Admin
Posts: 3064
Joined: 22 Dec 2011, 19:20

Re: Crash in KeyDown when custom control is in focus

10 May 2023, 20:28

Hi,

I don't think the destructor will change anything, because if your custom component is destroyed, the values stored as dependency properties there will automatically release their references.
Could you please create a ticket in our bugtracker and attach a crash mini dump so we can debug it and see the actual callstack?

Thanks.

Who is online

Users browsing this forum: No registered users and 4 guests