m_iLibCount is a member of ChannelFactory class. This is a new axis3 transport related class. Please see src/transport/axis3/ChannelFactory.hpp and src/transport/axis3/ChannelFactory.cpp.
Thanks, Samisa... On Tue, 25 Jan 2005 09:12:03 +0000, John Hawkins <[EMAIL PROTECTED]> wrote: > > Sorry, not that familiar with this class. What is m_iLibCount ? > > > John Hawkins > > > > > > Samisa Abeysinghe <[EMAIL PROTECTED]> > > 25/01/2005 08:11 > > Please respond to > "Apache AXIS C Developers List" > > > To Apache AXIS C Developers List <[email protected]> > > cc > > Subject > m_iLibCount in ChannelFactory class > > > > > > Hi, > m_iLibCount in ChannelFactory class hit the celing value > ChannelFactory_MaxListSize (which is 2 at the moment) during the first > call to ChannelFactory::LoadChannelLibrary(). > Then m_iLibCount stays at 2 and the subsequest calls to > ChannelFactory::LoadChannelLibrary() tries to access invalid memory on > line: > m_pChannel[m_iLibCount] = pChannel; (in other words tries to access > m_pChannel[2] which is out of array given that array size is 2. > > I ran into this while running the memory profiler. > I think this is a bug. > > I guess we have to correct it by adding an else clause to: > if( m_iLibCount < ChannelFactory_MaxListSize) > { > m_iLibCount++; > } > else > { > m_iLibCount = 0; // hit the celing, next load attempt need to > reload form start > } > > Any comments please. > > Thanks, > Samisa... > >
