Some of you may have seen my call for help with an OpenGL error.
Some of you may have seen my call for help with an OpenGL error. Well I tracked the bug down to a change in the SetWindowState procedure in vcl.forms. Nothing to do with OpenGL or threading.
Here's the bug:
The if Showing then ... end is new, specifically the RecreateWnd which is not in 10.1. I have wasted many days over this. Very poor. Is there any regression testing going on at EMBA?
if FWindowState <> Value then
begin
FWindowState := Value;
if not (csDesigning in ComponentState) then
begin
if Showing then
ShowWindow(Handle, ShowCommands[Value])
else if HandleAllocated and (FWindowState = wsMaximized) then
RecreateWnd; <<<< this is new and breaks my application
end;
end;
Here's the bug:
The if Showing then ... end is new, specifically the RecreateWnd which is not in 10.1. I have wasted many days over this. Very poor. Is there any regression testing going on at EMBA?
if FWindowState <> Value then
begin
FWindowState := Value;
if not (csDesigning in ComponentState) then
begin
if Showing then
ShowWindow(Handle, ShowCommands[Value])
else if HandleAllocated and (FWindowState = wsMaximized) then
RecreateWnd; <<<< this is new and breaks my application
end;
end;
Comments
Post a Comment