Access Violation when linking statically
I'm using C++ Builder XE5 and Fast Report 4.13.2 (it comes with C++ Builder XE5).
When I tried to compile my application with static linking, an AV will always happen when I execute frxReport1->ShowReport(true);
I confirmed this AV is caused by Fast Report. I started a new, blank VCL Application, go in to Project Options and uncheck C++ Linker->Link with dynamic RTL and Pakages->Runtime Packages->Link with runtime packages, and then drop a frxReport1 on the form, a button to trigger the ShowReport() of the report. Regardless of any dataset linked to the report or not, the AV will happened when the report is shown. The AV does not happen if I compile the application with dynamic linking (check the 2 items mentioned above in project options).
Is this a known issue? Will Fast Report VCL 5 solve this problem? Most of my applications will need to be compiled with static linking, to minimize maintenance (so that my users won't have to worry with all the dll and bpl files all over the places) .
I need to confirm if this is a known issue of the free version of Fast Report 4.0 and the problem is resolved in the newer version, to convince my boss to purchase the paid version.
attached is a screenshot. Thanks in advance.
Edit:
Further information - when I break from the application process after the AV, this is the line it is displaying that causing the problem:
in the vcl.Forms unit. Screenshot in 2nd attachment.
When I tried to compile my application with static linking, an AV will always happen when I execute frxReport1->ShowReport(true);
I confirmed this AV is caused by Fast Report. I started a new, blank VCL Application, go in to Project Options and uncheck C++ Linker->Link with dynamic RTL and Pakages->Runtime Packages->Link with runtime packages, and then drop a frxReport1 on the form, a button to trigger the ShowReport() of the report. Regardless of any dataset linked to the report or not, the AV will happened when the report is shown. The AV does not happen if I compile the application with dynamic linking (check the 2 items mentioned above in project options).
Is this a known issue? Will Fast Report VCL 5 solve this problem? Most of my applications will need to be compiled with static linking, to minimize maintenance (so that my users won't have to worry with all the dll and bpl files all over the places) .
I need to confirm if this is a known issue of the free version of Fast Report 4.0 and the problem is resolved in the newer version, to convince my boss to purchase the paid version.
attached is a screenshot. Thanks in advance.
Edit:
Further information - when I break from the application process after the AV, this is the line it is displaying that causing the problem:
try
admin    Result := Winapi.Windows.MessageBox(TaskActiveWindow, Text, Caption, Flags);
  finally
in the vcl.Forms unit. Screenshot in 2nd attachment.
Comments
May I ask where can I get it? It's not offered in the download section of Fast Report.
Hi gordk!
I get now the same problem. I know FR4 is outdated but would it be possible to get v4.15.13 or higher?
Thanks, Pit