Keith Kyzivat wrote: > Why this worked (prior to r11093) when compiled with vs2003 or gnu g++ > (on linux), I'm not sure.. > > On Fri, Dec 12, 2008 at 2:39 AM, Keith Kyzivat <kkyzi...@sipez.com > <mailto:kkyzi...@sipez.com>> wrote: > > Aha! Alex and I found out the problem. > > The issue is that the MpResourceTopology::ResourceDef and > MpResourceTopology::ConnectionDef structs were storing references... > > If you think about it -- these structs are initialized from a static > array-of-structs initializer, where the UtlStrings are implicitly > constructed from constant strings... so, the UtlString is > constructed, the struct is constructed - and stores reference to the > string, then, after the struct is constructed, UtlString goes out of > scope, and gets implicitly deleted -- now struct holds invalid > reference... > > I've fixed this now in rev 11093 -- and verified that > sipXmediaAdapterLibTest unit tests run >
I have updated to 11093 and the problem is fixed on VS2008. :-) Regards Paul. _______________________________________________ sipxtapi-dev mailing list sipxtapi-dev@list.sipfoundry.org List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/