-----Original Message-----
From: mohammad alam [mailto:cheersalam@gmail.com]
Sent: Tuesday, June 17, 2008 3:16 AM
To: Simon Horne
Subject: Re: [h323plus] Crash in Ptlib...........
Simon
>RemoveCapability(H323Capability::e_ExtendVideo);
Yes I can remove but I dont want to..
I am adding H323_h224 capability for Far End Camera Control. Is this the
reason for Multiple control channel
alam
On Mon, Jun 9, 2008 at 12:33 AM, Simon Horne <s.horne(a)packetizer.com>
wrote:
Alam
Sorry for the delay
You can disable extended video capability by
RemoveCapability(H323Capability::e_ExtendVideo);
But I don't think that is the problem. As I mentioned before you are
opening
2 control channels somehow.
Simon
-----Original Message-----
From: h323plus-bounces(a)lists.packetizer.com
[mailto:h323plus-bounces@lists.packetizer.com]On Behalf Of mohammad alam
Sent: Saturday, June 07, 2008 2:35 PM
To: H323plus
Subject: [h323plus] Crash in Ptlib...........
Simon, Robert
I am not using H323Connection::OnSendCapabilitySet()
Robert, As you suggested I go through my code many times and have taken
great care of pointers.
I tried to debug the library and I find the reason for PTlib crash. I am
not
sure.but It solved the problem for me
In file h323caps.cxx
Line no . 2064
BOOL
H323CodecExtendedVideoCapability::OnSendingPDU(H245_VideoCapability &
pdu) const
{
.
.
.
.
1 if (table.GetSize() > 0) {
2 caps.SetSize(table.GetSize());
3 for (PINDEX i=0; i< table.GetSize(); i++) {
4 H245_VideoCapability vidcap;
5 ((H323VideoCapability &)table[i]).OnSendingPDU(vidcap);
6 caps[i] = vidcap;
7 }
8 } else {
9 caps.SetSize(extCapabilities.GetSize());
10 for (PINDEX i=0; i< extCapabilities.GetSize(); i++) {
11 H245_VideoCapability vidcap;
12 ((H323VideoCapability
&)extCapabilities[i]).OnSendingPDU(vidcap);
13 caps[i] = vidcap;
14 }
15 }
Here in line no. 1 if (table.GetSize() > 0) { table.GetSize() does not
get
initialsed after the end of the call
table.GetSize() increases in order 0, 2, 4, 16, 32, 64, 128, 256 and
crash........
I am not using Extended channel. But by default plugins add H.263
extended
capabilities.
How to avoid this?? Where is the problem??
Alam