Einzelnen Beitrag anzeigen

Rollo62

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

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

  Alt 24. Nov 2023, 18: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