Lazy<...> Constructor-DI not working with Delphi 2010

Issue #3 closed
Former user created an issue

Following Constructor wasn't called on D2010: constructor TFoo.Create(const bar: Lazy<IBar>)...

ILazy<...> and TFunc<...> are working.

Comments (5)

  1. Stefan Glienke repo owner

    Please post the code that leads to the error on your side - also please make sure you are using Delphi 2010 with at least Update 4.

    I cannot reproduce it with the code I attached.

  2. norman_czarczinski

    I'm the creator of this issue and now logged in.

    The example doesn't work for me on Delphi 2010 (Update 4) and the latest Spring4D from this repository, because the constructor wasn't called.

    With my XE3 the example runs without problems.

  3. Stefan Glienke repo owner

    Please make sure that you don't have any old Spring4D files around in your Delphi 2010 directories and make sure you are using the latest version from develop.

    If that still does not work then please attach the compiled project.

  4. Log in to comment