[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ccrtp-devel] newbie cleanup problem
From: |
Claude Brisson |
Subject: |
[Ccrtp-devel] newbie cleanup problem |
Date: |
Wed, 08 Dec 2004 21:18:12 +0100 |
Hi
Consider the following simple executable :
int main(int argc,char* argv[])
{
RTPSession * session = new
RTPSession(InetHostAddress("127.0.0.1"),
RTP_LOCAL_RECV_PORT,
RTCP_LOCAL_RECV_PORT);
session->setPayloadFormat(StaticPayloadFormat(sptPCMU));
session->startRunning();
sleep(10);
delete session; // causes segmentation fault on exit
return 0;
}
the "delete session" causes a segmentation fault on cleanup...
whereas demo programs don't seem to have this problem.
Of course I can omit the delete statement, but if I need to cleanup
without exiting, who is going to cleanup the heap ?
Am I doing something wrong ?
Thanks,
Claude
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ccrtp-devel] newbie cleanup problem,
Claude Brisson <=