TppReportExplorerForm Plugin Problem With RB11.02
I have been using the following code with RB10 for some considerable time
howeve, since upgrading to RB11 when executing the SetCurrentTheme I get the
following error:
Access violation at address 004A0570 in module 'ESTATEPRO.exe'. Read of
address 00000000.
Has the way of setting themes changed? Any help would be greatly
appreciated.
Ken
procedure TMyExplorerPlugin.Initialize;
begin
inherited;
Toolbar.FullSize:=True;
Toolbar.DragHandleStyle:=dhNone;
MenuBar.Visible:=False;
TppThemeManager.SetCurrentTheme('Office2003');
Toolbar.Color:=EstateAgentPro.dxBarManager.LookAndFeel.Painter.DefaultGroupColor;
end;
howeve, since upgrading to RB11 when executing the SetCurrentTheme I get the
following error:
Access violation at address 004A0570 in module 'ESTATEPRO.exe'. Read of
address 00000000.
Has the way of setting themes changed? Any help would be greatly
appreciated.
Ken
procedure TMyExplorerPlugin.Initialize;
begin
inherited;
Toolbar.FullSize:=True;
Toolbar.DragHandleStyle:=dhNone;
MenuBar.Visible:=False;
TppThemeManager.SetCurrentTheme('Office2003');
Toolbar.Color:=EstateAgentPro.dxBarManager.LookAndFeel.Painter.DefaultGroupColor;
end;
This discussion has been closed.
Comments
Are you able to see where the AV is occuring? If you set your library path
to RBuilder\Source\... you should be able to trace into the ReportBuilder
source where the error occurs..
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Yes, it is in ppJvInspector.pas line 3562 procedure procedure
TppJvInspectorPainter.Paint. The offending line is
Canvas.FillRect(Rect);
Hope this helps.
Ken
In my testing with the latest build of RB 11.02, I was unable to recreate
the error after creating a simple report explorer plugin and using code
similar to yours. Are you able to recreate this using a simple, minimal
explorer replacement? If so, please try getting the error using one of our
end-user demos and send the plugin to support@digital-metaphors.com in .zip
format and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com