<div>Hello, all</div><div>I have a project, which should stream video from cameras in network (internet too). By technical project, the program should be implemented in c sharp for windows. I want to use live555. It already works as separate processes. This works good, but i have no feedback with processes (Of course I have an process object, but this is not what need). I try write a dll library. As a basis, I took the proxy code. It works sometimes. But I can not stop the server correctly.</div>
<div>I do it so:</div><div><br></div><div>"if (env!=NULL)</div><div><span class="" style="white-space:pre">      </span>env->taskScheduler().doEventLoop(&done);"</div><div>"done = ~0;</div><div>if (rtspServer!=NULL)</div>
<div><span class="" style="white-space:pre">    </span>Medium::close(rtspServer);"</div><div><br></div><div>In principle, the server stops after "done = ~ 0", but socket stays open. Next server launch (Main application is not closed) is success, but I have no stream. I found, that "Medium::close(...)" stops all. In my library I get exception when it calls. Visual Studio debugger goes to Media.cpp in liveMedia, string 151: "delete medium;" in remove function.</div>
<div>Excuse me for my english, I hope for your help.</div>