Lazarus

Programming => Packages and Libraries => Lazarus Extra Components => Topic started by: motaz on January 26, 2011, 06:43:03 pm

Title: Loading second file into LazReport hangs the application
Post by: motaz on January 26, 2011, 06:43:03 pm
I have two reports, I load them at run-time, they are working fine in Linux, when I run the code in Windows, second loading hangs the application. I tried many version of Lazarus in Windows, I get the same problem.
I tested todays snapshot for Windows.

when I comment the scond loading to report every thing works fine and first report works fine, when I commented the first loading of report, it works fine and second report works fine.

when I load the first report twice it works for the first time and generates access violation for the second time in Windows.
Is it known bug?

Code: [Select]
  frReport1.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'daily.lrf');
  frReport2.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'accounts.lrf');