Tuesday, May 11, 2010

Fixing a 6 Month Old Bug

There are bugs and bugs. Some bugs really stands out. This one was a love/hate relation because was as simply untouchable: I was need to select a rectangle from OpenCascade view and I had two options: to make it flicker or to make not update at all. Those two solutions make to appear the Zoom Window tool to work.
The cause was that mixing OpenGL view from OpenCascade with GDI+ from System.Drawing do not work well.
Right now the selection works nice using a workaround (using a transparent window on top of NaroCAD application) and no API mixing is involved. All other solutions (like picking double buffering to parent control, all known APIs of OpenCascade to make flicker free) do not succeed.
So enjoy using this new selection.

No comments: