Re: [Live-devel] Proper cleanup of live555 instances

2008-07-04 Thread Silvain Beriault
Ross Finlayson wrote: here is currently how I currently cleanup: sink->stopPlaying(); Medium::close(framedSource); Medium::close(sink); <== crashes env->reclaim(); Here are my questions: 1. Overall what should be the full cleanup sequence for that example? I'm not sure why you got a crash, b

Re: [Live-devel] Proper cleanup of live555 instances

2008-07-03 Thread Ross Finlayson
here is currently how I currently cleanup: sink->stopPlaying(); Medium::close(framedSource); Medium::close(sink); <== crashes env->reclaim(); Here are my questions: 1. Overall what should be the full cleanup sequence for that example? I'm not sure why you got a crash, but try closing the sink

[Live-devel] Proper cleanup of live555 instances

2008-07-03 Thread Silvain Beriault
Hello, I have written an application similar to testMPEG1or2VideoStreamer.cpp but within a larger application. Therefore, I need to perform some cleanup to avoid memory leaks. Here is what I currently allocate (in that same order): TaskScheduler *scheduler; BasicUsageEnvironment *env; RTPSin