vlynk293 / mikrotik4net

Automatically exported from code.google.com/p/mikrotik4net
Other
0 stars 0 forks source link

Null reference exception when trying to reuse session in asp.net #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
when trying to re invoke this code the null refrence exception occur in 
"TikConnectorType.Api", only the first access works any subsequent tries gives 
this error !! how can the session be managed in web application !

using (TikSession session = new TikSession(TikConnectorType.Api))

Original issue reported on code.google.com by alialnak...@gmail.com on 28 Jun 2011 at 11:12

GoogleCodeExporter commented 8 years ago
Can you please post here your code? And complete stack of error?
Thanx.

Original comment by daniel.f...@gmail.com on 30 Jun 2011 at 9:26

GoogleCodeExporter commented 8 years ago
Hallo,
  currently I found the multithread issue in TikSession. I believe, that this is the reason of this bug. (Clasiccal problem with static ThreadStat together with initializator).

It is fixed in svn now. 

Danik

Original comment by daniel.f...@gmail.com on 28 Oct 2011 at 8:42