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

Ross Finlayson finlayson at live555.com
Tue Nov 27 17:41:27 PST 2012


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

The "doEventLoop()" function does not return *until* the variable "done" is set to some non-zero value, so if the value of "done" is zero before you call "doEventLoop()", then that call will never return (and so you will never get to the statement "done = ~0;").

If you want to leave the event loop (using this method), then you will need to set "done = ~0;" either
	- within the event loop (i.e., when you handle a LIVE555 event), or
	- from a different thread.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20121127/76041fee/attachment.html>


More information about the live-devel mailing list