It fixes a whole bunch of memory leaks: some are specific to the way process is working and will apply to all calls,
some fixes are specific to the initialize call.
If you look in LSP.General, you will see how TPersistent descendents must be coded.
The same principle must now be applied to all TPersistent descendents:
Override the 'Assign' method. It must copy all properties from the 'aSource' parameters.
Create properties of type class in the constructor.
destroy them in the destructor.
assign them through a setter that calls the .Assign() method.
With this patch, the server runs and the 'Initialize'call is executed without any memory leaks when the binary stops.
Hello Ryan,
This patch must merged after the previous one.
It fixes a whole bunch of memory leaks: some are specific to the way process is working and will apply to all calls, some fixes are specific to the initialize call.
If you look in LSP.General, you will see how TPersistent descendents must be coded. The same principle must now be applied to all TPersistent descendents:
With this patch, the server runs and the 'Initialize'call is executed without any memory leaks when the binary stops.