memory leak in wxLogMessage to window?

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
toshal
In need of some credit
In need of some credit
Posts: 2
Joined: Wed Jun 09, 2010 2:44 pm

memory leak in wxLogMessage to window?

Post by toshal » Tue Feb 01, 2011 3:42 pm

logging messages to window in 'server.cpp' client server example code, it seems there is a small memory leak for messages that are sent to the Log() I guess because they are stored in the window text, and never deleted while it's running.

Any comments or ideas on that? Maybe my code is old!


Name: server.cpp
Purpose: IPC sample: server
Author: Julian Smart
Modified by: Jurgen Doornik

orbitcowboy
I live to help wx-kind
I live to help wx-kind
Posts: 178
Joined: Mon Jul 23, 2007 9:01 am

Re: memory leak in wxLogMessage to window?

Post by orbitcowboy » Tue Feb 01, 2011 9:52 pm

toshal wrote:logging messages to window in 'server.cpp' client server example code, it seems there is a small memory leak for messages that are sent to the Log() I guess because they are stored in the window text, and never deleted while it's running.

Any comments or ideas on that? Maybe my code is old!


Name: server.cpp
Purpose: IPC sample: server
Author: Julian Smart
Modified by: Jurgen Doornik
Please create a ticket on the bug-tracker:

http://trac.wxwidgets.org/wiki

Thanks for reporting
OS: Ubuntu 9.04 (32/64-Bit), Debian Lenny (32-Bit)
Compiler: gcc/g++-4.3.3 , gcc/g++-4.4.0
wxWidgets: 2.8.10,2.9.0

Post Reply