Remove classes string name from compiled release exe

前端 未结 1 1427
萌比男神i
萌比男神i 2021-01-27 08:02

I compile the release version of my application project. When I look with binary editor my compiled final exe i can see all the class name of my own created object, for example

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-27 08:39

    If you were to remove class names from the executable, then your application would stop working. The .dfm files that are compiled into your application contain the class names. The runtime streaming framework needs to be able to look those classes up in the class registry and without the names then your forms and their properties could not be streamed.

    On top of that, as AlexSC points out, the implementation of TObject.ClassName requires the names of the classes to be present in the executable file.

    0 讨论(0)
提交回复
热议问题