question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Page Drag&Drop/Floating exception

See original GitHub issue

Describe the bug Exception when dragging a page inside a DockableWorkspace.

Only happens in 60.22.2.32.

Stack trace

   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
   at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
   at Krypton.Toolkit.CommonHelper.ScaleImageForSizedDisplay(Image src, Single trgtWidth, Single trgtHeight)
   at Krypton.Toolkit.ButtonSpecView.GetImage(PaletteState state)
   at Krypton.Toolkit.RenderStandard.AllocateImageSpace(StandardContentMemento memento, IPaletteContent paletteContent, IContentValues contentValues, PaletteState state, Rectangle displayRect, RightToLeft rtl, Size[,]& allocation)
   at Krypton.Toolkit.RenderStandard.GetContentPreferredSize(ViewLayoutContext context, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, Boolean composition, Boolean glowing)
   at Krypton.Toolkit.ViewDrawContent.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewLayoutDocker.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewComposite.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewDrawSplitCanvas.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewDrawButton.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewComposite.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewLayoutCenter.GetPreferredSize(ViewLayoutContext context)
   at Krypton.Toolkit.ViewDrawDocker.Layout(ViewLayoutContext context)
   at Krypton.Toolkit.ViewDecorator.Layout(ViewLayoutContext context)
   at Krypton.Toolkit.ViewDrawDocker.Layout(ViewLayoutContext context)
   at Krypton.Toolkit.ViewManager.Layout(ViewLayoutContext context)
   at Krypton.Toolkit.KryptonForm.CheckViewLayout()
   at Krypton.Toolkit.KryptonForm.WindowChromePaint(Graphics g, Rectangle bounds)
   at Krypton.Toolkit.VisualForm.OnNonClientPaint(IntPtr hWnd)
   at Krypton.Toolkit.VisualForm.OnWM_NCPAINT(Message& m)
   at Krypton.Toolkit.VisualForm.WndProc(Message& m)
   at Krypton.Docking.KryptonFloatingWindow.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Steps to reproduce the behavior: Add a Form Add KryptonPanel Add DockableWorkspace to the panel

Setup docking manager on Form Load:

KryptonDockingWorkspace w = KryptonDockingManager.ManageWorkspace(kryptonDockableWorkspace);
KryptonDockingManager.ManageControl(kryptonPanel, w);
KryptonDockingManager.ManageFloating(this);

Add some page using KryptonDockingManager.AddToWorkspace()

In this minimal application it only throws exception when trying to drag a page. On another more complex application it also throws the same exception at form resize or even when trying to show the desktop.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bakerhillpinscommented, Apr 9, 2022

Done! https://github.com/Krypton-Suite/Standard-Toolkit/issues/691

The help.exe has all the API docs I’m looking for at the moment! Thanks!

1reaction
thiagoraheemcommented, Mar 9, 2022

I put this code and then it is working for me

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dragging LayoutAnchoreable into outer docking buttons of ...
The solution to this problem should be to not offer the 4 outer drop buttons when dragging an item on over a Floating...
Read more >
Error: java.lang.RuntimeException: Timout showing floating ...
I have floating bar profiles connected to variable states. But I'm having issues I cannot resolve. My profiles/tasks are executed.
Read more >
Pop Shell: Floating Window Exceptions GUI : r/pop_os
In Pop Shell panel menu will be a new option, "Floating Window ... Drag & drop not working from file explorer into Premiere...
Read more >
Re: floating point exception
It usually means a divide by zero problem.
Read more >
Floating Point Exception error in Multiphase when g is ...
Dear Team,n When I am trying to run multiphase simulation with water and air as medium to calculate the pressure drop for velocity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found