Jump to content
pyscripter

How to patch a constructor?

Recommended Posts

Posted (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 by pyscripter

Share this post


Link to post
Posted (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 by Stefan Glienke
  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×