-----Original Message-----
From:
h323plus-bounces@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