A class named TfrxDMPPage already exists

I put the Fastreport control in a EXE code, and a DLL code in delphi.

but when load DLL, the error "A class named TfrxDMPPage already exists"
appeared.

How to fix this problem?

anyone can give some suggestions?

Thanks

gavin

Comments

  • edited 2:45PM
    Don't put FR code into two places (dll and exe). This will lead to classes conflict.
  • edited 2:45PM
    AlexTZ wrote:
    Don't put FR code into two places (dll and exe). This will lead to classes conflict.
    just want to fix this problem, not to avoid it, anyway thanks.
  • edited 2:45PM
    Use Delphi packages instead of dll.
  • I have the same issue, - there is no FR-Code in the exe who calls the dll, so this has to be fixed anyway!

  • btw...

    This also happens if you put it in 2 dlls, as soon as second one ist loaded the error is there.

    I use the latest version of Fastreport on XE11.2 installed and bought only a view days ago

    In version 6.5 there was not such a bad problem and my software need Dlls, i can not switch my Software away from DLL

    looks like I spend my money for regression

  • If someone still has a similar problem, just add in the project options ‘RuntimePackages import libraries’ the corresponding frx/ fr and/or fs libraries for each DLL

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.