Fwd: thousands of memory leaks when using own module and mfc dll
Dear Freeswitch developers, i have a problem with FreeSwitch (Version 1.0.4) and my own module, which loads a MFC based DLL -- where obviously memory leaks are produced. let me try to explain what i have. 1) First of all, let's discuss the case where everything works fine in freeswitch. My FreeSwitch module (which here loads no further DLL) is loaded and unloaded correctly when a call is accepted and later on hung up. 2) Then i load an "empty" DLL, without MFC and all that stuff, which i created, within my FreeSwitch module. I do this when accepting a call. when hanging up, I FreeLibrary(), quit FreeSwitch and everything is fine. No memory leaks, no errors, just everything as it ought to be. 3) But then! Then i take my module and load a DLL which uses MFC. and then, when after unloading the DLL on hanging up, I exit the FreeSwitch application and get that many memory leak reports in the debug out of visual studio 2008... that leads me to my question: Are there any know issues with FreeSwitch and MFC DLLs ? I tried to simulate the problem with creating an Application which simply loads the Non-MFC DLL (see number 2 above). No memory leaks. Also, no memory leaks are detected when loading the MFC-DLL from 3) (see above). but Visual Studio detects one (!) 4-byte-memory-leak when loading the MFC DLL inside the Non-MFC-Dll (like the FreeSwitch module ought to do it). Back to the question, if there is an issue with FreeSwitch and MFC-DLLs. The object dump, which Visual Studio gives to me, says that leaks are detected at "VARCHAR(255)", "shma", "TeleTone" or "loopback.auto". I do not know where that comes from. Maybe, you have an idea which you could share with me to solve the problem, on which i have spent really much time already... I just attach the out as text file. Thank you so much in advance Sebastian
2010. április 22. 19.31.36 dátummal Sebastian Rudek az alábbiakat írta:
Dear Freeswitch developers,
i have a problem with FreeSwitch (Version 1.0.4) and my own module, which loads a MFC based DLL -- where obviously memory leaks are produced. let me try to explain what i have. 1) First of all, let's discuss the case where everything works fine in freeswitch. My FreeSwitch module (which here loads no further DLL) is loaded and unloaded correctly when a call is accepted and later on hung up. 2) Then i load an "empty" DLL, without MFC and all that stuff, which i created, within my FreeSwitch module. I do this when accepting a call. when hanging up, I FreeLibrary(), quit FreeSwitch and everything is fine. No memory leaks, no errors, just everything as it ought to be. 3) But then! Then i take my module and load a DLL which uses MFC. and then, when after unloading the DLL on hanging up, I exit the FreeSwitch application and get that many memory leak reports in the debug out of visual studio 2008... that leads me to my question: Are there any know issues with FreeSwitch and MFC DLLs ?
I tried to simulate the problem with creating an Application which simply loads the Non-MFC DLL (see number 2 above). No memory leaks. Also, no memory leaks are detected when loading the MFC-DLL from 3) (see above). but Visual Studio detects one (!) 4-byte-memory-leak when loading the MFC DLL inside the Non-MFC-Dll (like the FreeSwitch module ought to do it).
Back to the question, if there is an issue with FreeSwitch and MFC-DLLs. The object dump, which Visual Studio gives to me, says that leaks are detected at "VARCHAR(255)", "shma", "TeleTone" or "loopback.auto". I do not know where that comes from. Maybe, you have an idea which you could share with me to solve the problem, on which i have spent really much time already... I just attach the out as text file.
Thank you so much in advance
Sebastian
You should try the latest git version, 1.0.4 is very old: http://wiki.freeswitch.org/wiki/Download_FreeSWITCH
Thank you very much for replying. But, unfortunately, an update to the newest version did not help. Am 22.04.2010 21:25, schrieb Michael Jerris:
Please try our latest release version 1.0.6
Mike
On Apr 22, 2010, at 1:31 PM, Sebastian Rudek wrote:
Dear Freeswitch developers,
i have a problem with FreeSwitch (Version 1.0.4) and my own module,
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sebastian Rudek, Softwareentwickler Lyncker& Theis GmbH Wilhelmstr. 16 65185 Wiesbaden Germany Fon +49 611/89038960 Fax +49 611/9406125 Handelsregister: HRB 23156 Amtsgericht Wiesbaden Steuernummer: 4023897051 USt-IdNr.: DE255806399 Geschäftsführer: Filip Lyncker, Armin Theis
Are you loading and unloading the dll each call? you probably only have to load it once when the module is loaded into FS. Maybe it's caching the old copy of the subsequent loads. Clearly this is not a FS problem anyway as your report has already proved. On Fri, Apr 23, 2010 at 8:36 AM, Sebastian Rudek <rudek@lyth.de> wrote:
Thank you very much for replying. But, unfortunately, an update to the newest version did not help.
Am 22.04.2010 21:25, schrieb Michael Jerris:
Please try our latest release version 1.0.6
Mike
On Apr 22, 2010, at 1:31 PM, Sebastian Rudek wrote:
Dear Freeswitch developers,
i have a problem with FreeSwitch (Version 1.0.4) and my own module,
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Sebastian Rudek, Softwareentwickler
Lyncker& Theis GmbH Wilhelmstr. 16 65185 Wiesbaden Germany
Fon +49 611/89038960 Fax +49 611/9406125
Handelsregister: HRB 23156 Amtsgericht Wiesbaden Steuernummer: 4023897051 USt-IdNr.: DE255806399
Geschäftsführer: Filip Lyncker, Armin Theis
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:+19193869900
participants (5)
-
Anthony Minessale
-
Brian West
-
Michael Jerris
-
Puskás Zsolt
-
Sebastian Rudek