AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Die Delphi-IDE F2613: Unit nicht gefunden, obwohl sie da ist
Thema durchsuchen
Ansicht
Themen-Optionen

F2613: Unit nicht gefunden, obwohl sie da ist

Ein Thema von TM6 · begonnen am 26. Okt 2023 · letzter Beitrag vom 26. Okt 2023
Antwort Antwort
TM6

Registriert seit: 14. Dez 2004
46 Beiträge
 
Delphi 12 Athens
 
#1

F2613: Unit nicht gefunden, obwohl sie da ist

  Alt 26. Okt 2023, 08:27
Ich habe plötzlich in Delphi 10.4 das Problem, dass ich beim Projekt erzeugen die Meldung F2613 erhalte.
Die entsprechende Unit ist jedoch in der dpr eingetragen und lässt sich von dort auch öffnen (STRG+Enter).

Ich habe auch schon alle DCU gelöscht, wobei das beim Erzeugen ja egal sein sollte.

Delphi & Rechner auch schon neu gestartet. Irgendeine Idee, was der Grund sein könnte. Ich bin absolut ratlos.

Edit:
Wenn ich statt einem Debug ein Release erzeugen will, dann wird eine andere Datei, die aber auch da ist und in der dpr steht, als nicht gefunden deklariert.

Geändert von TM6 (26. Okt 2023 um 08:29 Uhr)
  Mit Zitat antworten Zitat
hoika

Registriert seit: 5. Jul 2006
Ort: Magdeburg
8.270 Beiträge
 
Delphi 10.4 Sydney
 
#2

AW: F2613: Unit nicht gefunden, obwohl sie da ist

  Alt 26. Okt 2023, 08:40
Hallo,
vielleicht steht in der dproj ein anderer Suchpfad?
Lösche die Unit mal aus der dpr und binde sie neu ein.
Heiko
  Mit Zitat antworten Zitat
TM6

Registriert seit: 14. Dez 2004
46 Beiträge
 
Delphi 12 Athens
 
#3

AW: F2613: Unit nicht gefunden, obwohl sie da ist

  Alt 26. Okt 2023, 09:23
Danke - da steht sie zwar nicht drin, aber das hat mich auf die richtige Fährte gebracht.
Ich hatte eine neue Unit in die dpr eingetragen und diese Zeile am Ende mit einem ';' statt mit einem ',' abgeschlossen.
Somit waren alle folgenden Units für Delphi beim Compilieren nicht existent.
Die Öffnen-Routine (STRG+Enter) interessiert das alles aber nicht.
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
214 Beiträge
 
#4

AW: F2613: Unit nicht gefunden, obwohl sie da ist

  Alt 26. Okt 2023, 09:37
Hi,

I will tell a story happened with me and not sure how much is relevant to your case.

I spent a lot of time optimizing my SecureBlackBox v15, the result was astonishing in performance, i did many big rewriting in it and many small tweaks, because well it is expired and working just perfect and secure, so the optimize process went for over a year every now and then, the whole time i was using it in production and not special happens, but after about six month form the last any edit in the library, my Delphi 2010 and Seattle start to refuse to compile my projects which were complied on almost daily bases first 2010 then after days the Seattle, while XE 8 still working fine with the projects that have SBB, it took me hours to find that it was SSB, and it took me days to retract every optimize i did to find the culprit.

In the end it was an "inline" procedure, in SBB i added the inline directive for few functions, and the culprit was FreeAndNil in SBB, it was added by SBB for compatibility reason, for them it is easier for cross languages, in Delphi with inline and in specific constellation it cause the compiler to crash or the whole IDE to disappear, the strange thing is, when there was a AV message it was pointing to the dpr, as i said it was compiling and linking without any problem for months, and then in few days a part two IDE start to crash and generate unreadable error and failure messages.

So and after sorry for the long story, i would check your libraries for functions and procedures that have same name in system.pas also any intrinsic, and it is important to check if you are overriding any of them too, also try to disable any inline, and see if that helps.

And good luck !
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.359 Beiträge
 
Delphi 11 Alexandria
 
#5

AW: F2613: Unit nicht gefunden, obwohl sie da ist

  Alt 26. Okt 2023, 10:13
Danke - da steht sie zwar nicht drin, aber das hat mich auf die richtige Fährte gebracht.
Ich hatte eine neue Unit in die dpr eingetragen und diese Zeile am Ende mit einem ';' statt mit einem ',' abgeschlossen.
Dadurch, dass die Unit anderswo eingebunden ist, wird dann zuerst diese Stelle vom Compiler gefunden.

Dieser geht zuerst die uses-Liste der .dpr durch und merkt sich die Units dort. Am Semikolon bricht er ab und geht dann die Units durch. Der weitere Quelltext der .dpr wird erst danach durchgegangen, so dass der Syntaxfehler dort erst am Ende gemeldet werden würde. Das muss man natürlich wissen, um entsprechende Rückschlüsse zu ziehen.

Zur Fehleranalyse bietet es sich an vielen Stellen an, absichtliche Syntaxfehler einzubauen, damit der Compiler diese finden muss. In diesem Fall wäre das Problem aufgefallen, wenn der Dateiname in der uses verfälscht worden wäre, denn der Compiler hätte dann zuerst diesen Fehler anzeigen müssen, sofern er bis zu der Zeile gekommen wäre. Hier wäre weiter der andere Fehler angezeigt worden, was dann gezeigt hätte, dass die uses-Liste ein Problem beinhaltet.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:40 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz