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 11:42PM
    Don't put FR code into two places (dll and exe). This will lead to classes conflict.
  • edited 11:42PM
    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 11:42PM
    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