[Live-devel] live555proxy as dll library. System.AccessViolationException when server closing

Сергей Бастраков shaman.lab.x11 at gmail.com
Tue Nov 27 05:42:58 PST 2012


Hello, all
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.
I do it so:

"if (env!=NULL)
env->taskScheduler().doEventLoop(&done);"
"done = ~0;
if (rtspServer!=NULL)
Medium::close(rtspServer);"

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.
Excuse me for my english, I hope for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20121127/6cdab8a1/attachment.html>


More information about the live-devel mailing list