pyscripter 704 Posted May 3, 2024 (edited) In an older post I showed how to patch a virtual/non virtual, public/private method. A recently came across an Vcl bug that requires patching a non-virtual constructor. Does anyone know how to do that? Edited May 3, 2024 by pyscripter Share this post Link to post
Stefan Glienke 2026 Posted May 3, 2024 (edited) You don't want to do that - try solving your issue in AfterConstruction or otherwise. Code generated for constructors is more than meets the eye - replicating that without mistakes can be quite the endeavor. Edited May 3, 2024 by Stefan Glienke 1 Share this post Link to post
pyscripter 704 Posted May 3, 2024 @Stefan Glienke Thanks. Would you happen know whether you can patch message methods? The only thing I could find is an old article Hallvard's Blog: Hack#15: Overriding message and dynamic methods at run-time (hallvards.blogspot.com). Share this post Link to post