v6.1.6 - Crashes with RzGroupBar

Components on the Raize Panels palette: panels, group bars, page controls, splitters, toolbars, status bars, group boxes, etc.

v6.1.6 - Crashes with RzGroupBar

Postby ama » Thu Mar 06, 2014 5:51 am

Hi,

Since version 6.1.6 I get crashes with RzGroupBar, the error message is "Control RzGroupBar1 has no parent window".

This crash happens when a RzGroupBar displays a scrollbar and you close the window. Also in the IDE when you close the form or use Alt+F12 to display the form source.

Removing the newly introduced line "ScrollPosition := 0" in function "TRzGroupBar.SetParent" solves this issue.
ama
 
Posts: 4
Joined:
Thu Mar 06, 2014 5:34 am

Re: v6.1.6 - Crashes with RzGroupBar

Postby Raize Support » Thu Mar 06, 2014 11:08 am

Hi,

Thanks for the report. Unfortunately, I am unable to reproduce the problem you describe. Can you recreate the problem in a test project? If so, please send the source code (no executables) to support@raize.com along with the steps needed to reproduce the problem and we'll certainly take a look.

Also, what version of Delphi are you using?

Ray
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 613
Joined:
Fri Mar 25, 2011 9:04 pm

Re: v6.1.6 - Crashes with RzGroupBar

Postby ama » Thu Mar 06, 2014 12:34 pm

I use Delphi XE5 pro with latest updates installed.

You can download a demo project from http://www.aignes.info/files/rc616crash.zip

Steps to reproduce:
1. Click "Button 1"
2. Scroll down to see "RzGroup 3" entirely
3. Click OK

Now you should see that message.
ama
 
Posts: 4
Joined:
Thu Mar 06, 2014 5:34 am

Re: v6.1.6 - Crashes with RzGroupBar

Postby Raize Support » Fri Mar 07, 2014 2:26 am

Hi,

Thanks for providing the test project. The secondary form was key to duplicating the problem. I was able to duplicate the issue and more importantly resolve it. The fix will be included in the next build, but in the meantime, you can make the modification yourself by changing the TRzGroupBar.SetParent method to the following. After modifying the RzGroupBar.pas file, you can use the !Build_RC6.cmd file to rebuild the component units and packages.

Ray

Code: Select all
procedure TRzGroupBar.SetParent( AParent: TWinControl );
begin
  inherited SetParent( AParent );
  // After reparenting the control, reset the ScrollPosition because
  // if there are lots of groups, the scroll bar will be positioned
  // at the end.
  if AParent <> nil then
    ScrollPosition := 0;
end;
Raize Software Support
Raize Software
http://www.raize.com
Raize Support
 
Posts: 613
Joined:
Fri Mar 25, 2011 9:04 pm

Re: v6.1.6 - Crashes with RzGroupBar

Postby ama » Fri Mar 07, 2014 7:12 am

Thanks, that fix solved all these issues here.
ama
 
Posts: 4
Joined:
Thu Mar 06, 2014 5:34 am


Return to Panels

Who is online

Users browsing this forum: No registered users and 2 guests