D
D
darked2013-05-30 06:36:09
Delphi
darked, 2013-05-30 06:36:09

Delphi Spring memory leak?

Good day,
When using Delphi Spring when registering a type using DelegateTo, for example:

GlobalContainer.RegisterType<ISomeInterface>.DelegateTo(
    function: ISomeInterface
    begin
      Result := TSomeInterfacedClass.Create();
    end
  );

there is a memory leak, it seems due to the use of an anonymous function. Does anyone know how to win?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question