From: korkless <kor...@ya...> - 2013-08-30 13:27:54
|
hi, i'm tring to use the trace api but i have same problems to correctly close the trace service. the call to fbTraceIstance.start("sessionName") will never return so this code will not works fbTraceIstance.start("sessionName") //next code will never execute Console.WriteLine("started, press enter to exit"); Console.ReadLine(); fbTraceIstance.Stop(TraceId); //TraceId is extracted from the first line of service output but if i start the service on another thread i have an exception on fbTraceIstance.Close becouse the service is still opened and it tries to reopen it inside the FbTrace.DoSimpleAction method called by FbTrace.Close this is the multithread code ThreadPool.QueueUserWorkItem(obj => fbTraceIstance.start("sessionName")); Console.WriteLine("started, press enter to exit"); Console.ReadLine(); fbTraceIstance.Stop(TraceId); //TraceId is extracted from the first line of service output so what's the way to correctly close the service? and if the client application will exit without closing it there's same problem on the firebird server ? for example memory leak, etc thanks |