Call to FillRectangles Hangs

  • Thread starter Thread starter Brian Swanson
  • Start date Start date
B

Brian Swanson

We have an VB.NET Windows Forms application, which only when running under a
terminal server via a Remote Desktop Connection, hangs.

The hang occurs on a call to FillRectangles, via an Overridden OnPaint
method in our custom control.

Has anybody experience a hang similar to this and if so do you have any
suggetions for how I might be able to fix the problem?

Thanks,

Brian Swanson
(e-mail address removed)
 
I should clarify: The hang happens only if the app is first started under a
Terminal Services session. If instead I start it at the console, then
connect to that session via Terminal Services/Remote Desktop, then hang will
not happen.

Thanks,

Brian
 
I found the problem. It was caused by passing Rectangles instead of
RectangleF's into the routine.

Brian
 
Back
Top