Hello,
I am experiencing Memory leak when using the following method:
MultiUserEnvironment.CreateUserContext(username, password, useAdUser)
with a Basic User authentication.
The leak is not reproduced when the same code is running with NTLM authentication.
I am always logging out and removing user context in finally block before returning the call ,and when the GC is invoked,
in NTLM auth, the memory usage is being reduced significantly, and in Basic auth is not making any significant change
Would love to get some help here
Thanks
Yuval Lombard
I made a test app that logged in with a basic user 1000 times.
Basically
_userContext1 = VideoOS.Platform.SDK.MultiUserEnvironment.CreateUserContext("mybasicuser", "myBasicPa$$w0rd", false);
VideoOS.Platform.SDK.MultiUserEnvironment.LoginUserContext(_userContext1);
and
VideoOS.Platform.SDK.MultiUserEnvironment.Logout(_userContext1);
VideoOS.Platform.SDK.MultiUserEnvironment.RemoveUserContext(_userContext1);
a thousand times repeated and I see no leaking.
I speculate that the AD user context is big, contains much data, while the Basic user context is tiny, because of this you will not see any significant drop in use of resource when removing the Basic user context. Might this explain your observations?