AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Sprachen und Entwicklungsumgebungen Object-Pascal / Delphi-Language Delphi Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?
Thema durchsuchen
Ansicht
Themen-Optionen

Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?

Ein Thema von Rollo62 · begonnen am 22. Nov 2023 · letzter Beitrag vom 24. Nov 2023
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von Uwe Raabe
Uwe Raabe

Registriert seit: 20. Jan 2006
Ort: Lübbecke
11.013 Beiträge
 
Delphi 12 Athens
 
#11

AW: Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?

  Alt 24. Nov 2023, 12:41
In deinem originalen Post ging es aber nicht um System.Variants, sondern um System.VarUtils.

Bei System.Variants bekomme ich auch den gleichen Fehler.
Uwe Raabe
Certified Delphi Master Developer
Embarcadero MVP
Blog: The Art of Delphi Programming
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
213 Beiträge
 
#12

AW: Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?

  Alt 24. Nov 2023, 12:48
Immer mit dem Fehler
"[dcc32 Fatal Error] System.Variants.pas(1271): E2158 System.Variants unit out of date or corrupted: missing '@VarCast'"
VarCast is declared as _VarCast, so in theory to make it work you need to strip all the functions in System.Variants.pas from these and adjust the whole unit to call them stripped code, though there might be something hidden to surprise you, which need to adjust system.pas itself, that most likely impossible with Delphi compiler.

If rebuilding the whole RTL (after making changes) is possible then that is the right way, in my opinion.
In case you succeeded in rebuilding the RTL, then i suggest to add global hooks with minimum interaction with the current code and declarations, these hooks and callback can be used for logging, and the RTL might still be compatible with default RTL, just food for thought.
  Mit Zitat antworten Zitat
Rollo62

Registriert seit: 15. Mär 2007
3.908 Beiträge
 
Delphi 12 Athens
 
#13

AW: Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?

  Alt 24. Nov 2023, 17:25
In deinem originalen Post ging es aber nicht um System.Variants, sondern um System.VarUtils.
Ja sorry, ich hatte beide probiert um die fehlende Referenzen reinzubekommen, hilft aber nichts.


Immer mit dem Fehler
"[dcc32 Fatal Error] System.Variants.pas(1271): E2158 System.Variants unit out of date or corrupted: missing '@VarCast'"
VarCast is declared as _VarCast, so in theory to make it work you need to strip all the functions in System.Variants.pas from these and adjust the whole unit to call them stripped code, though there might be something hidden to surprise you, which need to adjust system.pas itself, that most likely impossible with Delphi compiler.

If rebuilding the whole RTL (after making changes) is possible then that is the right way, in my opinion.
In case you succeeded in rebuilding the RTL, then i suggest to add global hooks with minimum interaction with the current code and declarations, these hooks and callback can be used for logging, and the RTL might still be compatible with default RTL, just food for thought.
Yes, I had seen the C-like notations, but that made me stop there.
To make such huge RTL change is not worth it, especially because I found the root cause meanwhile also without logging into this.

Thanks anyway, for the help here.
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
213 Beiträge
 
#14

AW: Lokale Kopie von System.Variants.pas einbinden und nutzen, geht das?

  Alt 24. Nov 2023, 18:25
Yes, I had seen the C-like notations, but that made me stop there.
To make such huge RTL change is not worth it, especially because I found the root cause meanwhile also without logging into this.

Thanks anyway, for the help here.
I was referring to recompiling the shipped DCU's hence the RTL, from https://stackoverflow.com/questions/...sible-then-how
Code:
This is a very old question/answer, but I can confirm that this is still a working solution in Delphi 10.3. Thanks – 
Johann Burgess
 Mar 30, 2021 at 3:39
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


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 18:05 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