Conflict between QuickReports and CADSoftTools VCL

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: support, SDS, admin

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Conflict between QuickReports and CADSoftTools VCL

Post by marym » 21 May 2018, 22:00

I am in the process of converting 2 projects from C++ Builder Seattle to C++ Builder Tokyo. I am having problems with some code that used to work fine in Seattle - converting a DXF to BMP.

I experimented with creating a simple sample VCL project. When I included CADSoftTools, I was successfully able to convert from DXF to BMP. However, as soon as I dragged a QuickReport component onto a form in the project, I got an Access Violation in TPicture.LoadFromFile when it calls Load.

I am attaching the 2 sample projects. The first one does not include QuickReport and works fine. The second includes QuickReport and does not work.

Thanks in advance for your help.
Attachments
Capture.PNG
screen shot of debugger
Capture.PNG (128.2 KiB) Viewed 31948 times
GraphicsAddQR.zip
After QuickReports was added
(7.53 KiB) Downloaded 418 times
GraphicsNoQR.zip
Before QuickReports was added to project
(6.98 KiB) Downloaded 403 times

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 21 May 2018, 23:40

Hello Mary,

Thank you for the sample projects.
Could you please tell what version of QuickReport you are using? QR 5.06 or 6.00?


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 21 May 2018, 23:58

We are using QuickReport 6

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 22 May 2018, 00:30

Mary,

Thank you for the information. We will test the problem.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 22 May 2018, 22:45

Hello Mary,

As we understand, you compiled CAD VCL source code into a static library (CADSoftLib.lib), and then added the library to the projects. If so, could you please send the file CADSoftLib.lib to the Technical Support e-mail?


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 23 May 2018, 14:30

Hi Mikhail,
Files were too big to attach to forum, so I sent them to info@cadsofttools.com.
Thanks,
Mary

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 23 May 2018, 19:33

Mary,

Thank you for the files.
We could reproduce the Access Violation in TPicture.LoadFromFile method and are currently investigating this issue.

Update: we have forwarded this issue to the developers team by opening a support case.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 23 May 2018, 23:15

Thank you Mikhail. Please keep me posted on your progress.
-Mary

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 29 May 2018, 15:11

Do you have an estimate for when you will be able to offer a patch to fix this issue?

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 29 May 2018, 17:20

Hello Mary,

At the moment we don't have the estimated date for the bug fix. We would also like to know if you renamed QuickReport header file SGConsts.hpp to avoid the namespace collision.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 29 May 2018, 22:25

Hi Mikhail,

I see that there is an SGConsts.hpp file that comes with QuickReports and with CADSoftTools. Is that the root of the problem?

I have not modified the SGConsts.hpp file in QuickReports or in CADSoftTools.

Thanks,
Mary

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 29 May 2018, 23:10

Mary,

As you might have noticed, the SGConsts.hpp file that comes with QuickReport also contains the namespace Sgconsts. This leads to compilation errors such as:

Code: Select all

[bcc32 Error] MVFont.hpp(56): E2316 'TmvFontStyles' is not a member of 'Sgconsts'
We could workaround this issue by renaming SGConsts.hpp, but renaming of headers is certainly not a good solution.


Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 30 May 2018, 00:37

FYI - I did not get any compiler or linker errors when I built my CADSoftTools static library. I also don't get any compiler or linker errors in my projects. Just the runtime error I described in my original post.

Would the problem be solved if you rename your sgConsts namespace? I am assuming you will have other customers that will also be using QuickReport that could run into the same error.

marym
Posts: 15
Joined: 22 Jul 2015, 00:03

Re: Conflict between QuickReports and CADSoftTools VCL

Post by marym » 11 Jun 2018, 18:16

We decided to switch to QuickReport 5.06, which does not have the namespace problem.

However, I think you should work with QuickReports to come up with a solution. The next time we upgrade the IDE we will run into this problem again unless either CADSoftTools or QuickReports makes a change.

Thanks!

support
Posts: 2930
Joined: 30 Mar 2005, 11:36
Contact:

Re: Conflict between QuickReports and CADSoftTools VCL

Post by support » 13 Jun 2018, 18:28

Hello Mary,

As we understand, switching to QuickReport 5.06 solved the problem with Access Violation in TPicture.LoadFromFile method. Is it right?

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply