-1

I'm migrating a project made with Delphi 2010 to Delphi 10.2. After installing all the dependencies with their updated version, this error happens:

enter image description here

It doesn't give me the line and I cannot put a breakpoint anywhere in file Data.DBXCommon.

The error occurs before the Application.Initialize (and that's the first line of the program) in the project dpr file.

The erros message is: Project Server.exe raised exception class EListError with message 'Duplicates not allowed'.

Lucas Steffen
  • 1,244
  • 2
  • 10
  • 22
  • 1
    Do you have breakpoints enabled? How about Use Debug DCUs? FWIW, I don't see any error message. – Jerry Dodge Nov 03 '17 at 16:53
  • 1
    An exception which happens before `Application.Initialize` tells me that it occurs in the `initialization` section of some unit. – Jerry Dodge Nov 03 '17 at 16:58
  • @JerryDodge forgot to put the error... it's in the initialize of the project dpr file. I'm searching for this "Debug DCU" if it can help me – Lucas Steffen Nov 03 '17 at 17:00
  • 1
    That under Project > Options > Delphi Compiler > Compiling > 'Use debug .dcus' – nil Nov 03 '17 at 17:02
  • 1
    You should probably first make sure your project is switched to `Debug` configuration. You don't want to enable that for `Release`. – Jerry Dodge Nov 03 '17 at 17:04
  • @JerryDodge Found the duplication, is loading a list of connections: [ASAConnection, ASEConnection, FBConnection, OracleConnection, etc..] and it's duplicating BlackfishSQLCONNECTION. Any ideia where that list comes from? It's not from the 'Data Explorer' tab in the IDE – Lucas Steffen Nov 03 '17 at 17:09
  • 1
    Depends - what kind of "dependencies" do you have? – Jerry Dodge Nov 03 '17 at 17:13
  • @JerryDodge , Well, turns out there's a file in the bin folder called dbxconnections.ini and there was 2 connections with the same name. Thank you \0 – Lucas Steffen Nov 03 '17 at 17:15

1 Answers1

-1

There's an ini file called dbxconnections.ini in the bin folder and there was 2 entries of the same connection.

Lucas Steffen
  • 1,244
  • 2
  • 10
  • 22