We're updating the issue view to help you get more done.Learn more

Citrix GDI+ Error when screen is locked

From: dabbith

Hello,

I'm having an issue with mRemoteNG Portable in a Citrix session running version 1.67. When mRemote is running and the screen is locked (usually via timeout, but I can for it by locking from the start menu), mRemote gets a generric GDI+ Error.

I found references to a similar error with GroupBox, but couldn't apply any of the solutions since you can't seem to override the OnpaintBackground event of the ToolStripContentPanel.

I get the stack trace below in the exception (forgive any typos, it's an OCR of the error message):

System. Runtime . InteropServices . ExternalException:
A generic error occurred in GDI+.
at System.Drawing .Graphics.Clear (Color color)
at
System .Windows.Forms .ToolStripProfessionalRenderer .OnRenderToolStripC
ontentPanelBackgroundoolStripContentPaneIRenderEventArgs e)
at
System .Windows.Forms .ToolStripRenderer .DrawToolStripContentPanelBackg
round(ToolStripContentPaneIRenderEventArgs e)
at
System .Windows.Forms .ToolStripContentPanel.OnpaintBackground(PaintEve
ntArgs e)
at System.Windows.Forms.Confrol .PaintWithErrorHandling(PaintEventArgs
e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Confrol.WmEraseBkgnd(Message& m)
at System. Windows. Forms. Control .WndProc(Message& m)
at System.Windows.Forms.ScrollableConfrol.WndProc(Message& m)
at
System.Windows. Forms. Control. ControlNativeWindow. OnMessage(Message
& m)
at
System.Windows.Forms.Control.ControlNativeWindow.Wndproc(Message&
m)
at System.Windows.Forms.NativeWindow .Callback(Intptr hWnd, Int32
msg, IntPtr wparam, IntPtr Iparam)


Also, some of the time when this happens I am unable to click Continue or Quit on the error and need to go to task manager to exit the application. I have not been able to determine the exact conditions when I am able to click continue and when I cannot.

Thanks,

Dabbith

Status

Assignee

Riley McArdle

Reporter

GitHub User

Components

Fix versions

Affects versions

1.67

Priority

Minor