-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackoverflowException on Get(name) after update from 3.3.4 to 3.3.5 #393
Comments
Would you mind sharing the call stack? |
Just want to mention that the name here |
As it seems, I don't get the StackoverflowException reproduced right now. Here again is a specific code that shows that it is the "name" parameter that is passed:
|
I'm using Ninject in a bigger application. |
Thanks @mur-dock , I can reproduce your issue. Will try make a fix soon. |
In the whole application I get a StackoverflowException and this callstack: mscorlib.dll!System.Collections.Generic.List<System.Func<Ninject.Planning.Bindings.IBinding, bool>>.Capacity.set(int value) |
Ninject 3.3.6 is released and the issue is fixed. |
Hi there,
I ran into an major issue after updating Ninject up to version 3.3.5.
As you can see in the code below, I want to request an instance of "Dummy" with "TryGet(name)".
But before that I have not registered a corresponding binding of "Dummy".
Therefore, I expected "NULL" as the result of "TryGet".
Ninject tries to create an instance of "Dummy". However, the only constructor available requires that you pass a "string" as a parameter.
And if I pass a "name" as a parameter to "TryGet", then a StackoverflowException occurs.
The text was updated successfully, but these errors were encountered: