Our customer has reported a crash:
Unhandled exception at 0x00007FFB5ACBB699 (KERNELBASE.dll) in FlexFtp.exe_240917_133453.dmp: 0xC000041D: An unhandled exception was encountered during a user callback.
The crash dump shows the location of the crash at TreeListBoxItem.cs at the close bracket of the catch:
protected override void OnContextMenuOpening(ContextMenuEventArgs e)
{
base.OnContextMenuOpening(e);
if (e == null || e.Handled || !ContextMenuService.GetIsEnabled(this) || GqF == null)
{
return;
}
TreeListBox treeListBox = GqF.TaA();
if (treeListBox == null)
{
return;
}
Point? pointerLocation = null;
if (e.CursorLeft >= 0.0 && e.CursorTop >= 0.0)
{
pointerLocation = new Point(e.CursorLeft, e.CursorTop);
Visual visual = e.OriginalSource as Visual;
if (visual == null && e.OriginalSource is FrameworkContentElement frameworkContentElement)
{
visual = frameworkContentElement.Parent as Visual;
}
if (visual != null && visual != this)
{
try
{
if (visual.FindCommonVisualAncestor(this) != null)
{
pointerLocation = visual.TransformToVisual(this).Transform(pointerLocation.Value);
}
}
catch (InvalidOperationException)
{
}
Do you have any idea?