Search found 21 matches

by Sharath
Tue Apr 22, 2014 3:10 pm
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Faster compiling on Windows sans configure.exe
Replies: 1
Views: 9337

Re: Faster compiling on Windows sans configure.exe

It is quite easy. Just right-click on openh323buildopts.h.in file and go to properties. Change the flag "Exclude from Build" to Yes. After that it won't generate openh323buildopts.h file everytime. You can make similar change in ptlib for ptbuildopts.h.in file.
by Sharath
Tue Apr 22, 2014 8:00 am
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

Alright, I am back on this. Regarding the openssl related leaks, I suggest you take a look at this stackoverflow link.

Unrelated to memory leaks, if I set PTRACING=0, the h323plus library doesn't compile. It is nothing serious, the check for PTRACING flag is not rigorously done in the library.
by Sharath
Fri Mar 07, 2014 6:28 pm
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

Before I sign off for the day, I suspect the problem is in the following code. You are storing lots of objects of classes derived from H460_Feature in the dictionary Features . If GetPurpose() was a virtual function that returned different values for different objects, then the following code would ...
by Sharath
Fri Mar 07, 2014 2:23 pm
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

Now that I got some pattern to look for, I discovered some more cases of de-referenced cloning that loses the pointer right away. Each of the following lines has such a case. h235\h235caps.cxx(259): : ChildCapability(*(H323Capability *)childCapability.Clone()), h235\h235caps.cxx(267): : ChildCapabil...
by Sharath
Fri Mar 07, 2014 11:39 am
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

Ok, I did find one definite source of memory leak. Filename: h4601.cxx Lines: Visible in the Image While copying the feature list, a new copy of the PString is cloned and then immediately de-referenced and passed by value. That means the pointer to that PString is lost right away. http://www.smugmug...
by Sharath
Fri Mar 07, 2014 11:08 am
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

2. H460FeatureSet destruction. Since most leaks appear to be related to this object, I decided to track the destruction of this object from the debugger. I know it can be a bit pointless without understanding the design. This is the destructor of H460_FeatureSet class. http://www.smugmug.com/photos...
by Sharath
Fri Mar 07, 2014 7:44 am
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Couple of bugs while compiling against ptlib 2.12.x
Replies: 0
Views: 12167

Couple of bugs while compiling against ptlib 2.12.x

While compiling the h323plus 1.26 library against ptlib 2.12.9, I ran into couple of bugs. Project: h323plus Filename: mediafmt.cxx Line: 667 The iterator is being used without initialization. http://www.smugmug.com/photos/i-Z23fXDZ/0/O/i-Z23fXDZ.jpg Project: simple Filename: main.cxx Line: 534 The ...
by Sharath
Fri Mar 07, 2014 7:32 am
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

I have added patches for both and have checked them into the CVS. Ah, glad to know you are one of the authors of the library. :D Glad to know this library is actively maintained. H323_STLDICTIONARY itself is NOT the source of the memory leak. The issue is in the code when and when not to delete poi...
by Sharath
Thu Mar 06, 2014 3:45 pm
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

Alright, I moved to an older version. h323plus 1.25 ptlib 2.10.9 But the memory leaks are still there. I ran the example program simpleplus.exe and watched the memory status using both PMemoryHeap::DumpStatistics() as well as Visual Leak Detector. I expanded the macro PCREATE_PROCESS(SimpleH323Proce...
by Sharath
Wed Mar 05, 2014 7:11 pm
Forum: H.323 Plus (Open Source H.323 Stack)
Topic: Memory leaks in H.323Plus library
Replies: 19
Views: 28714

Re: Memory leaks in H.323Plus library

I am using the following combo as specified at http://www.h323plus.org/source : H.323 Plus Core 1.26.0 2014‑01‑28 PTLib (req) 2.12.8 2013‑11‑04 Right now I am just using the simple example provided in the H.323Plus visual studio project file. If I just start that program and bring it down without a ...