- attached Issue3.zip
Lazy<...> Constructor-DI not working with Delphi 2010
Issue #3
closed
Following Constructor wasn't called on D2010: constructor TFoo.Create(const bar: Lazy<IBar>)...
ILazy<...> and TFunc<...> are working.
Comments (5)
-
repo owner -
repo owner - changed status to on hold
-
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.
-
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.
-
repo owner - changed status to closed
- Log in to comment
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.