User forums > Using Code::Blocks
[Valgrind] Does not open the console and message window stays blanc
killerbot:
do both valgrind windows stay empty ??
Valgrind should be the output as is, the valgrind messages is the result of the parse of the xml; which will fail in this case because of that last line, which turns the output into invalid xml.
Sunsawe:
the valgrind window it self, sends just that:
--- Code: ---valgrind --version
valgrind-3.4.1-Debian
valgrind --leak-check=yes --xml=yes "bin/Debug/MyApplicationTestExe"
--- End code ---
Jenna:
I don't get any output (except for the three starting lines), if I use a wxLogWindow for debugging purposes.
This might be related to your problem.
killerbot:
Something you can try out, just to see if valgrind returns to CB, is adding the following line to your CB source tree, and rebuild CB yourself. I assume you build CB yourself, which is most often the case for linux users ;-)
insert the following line in between line 283 and 284 :
--- Code: --- AppendToLog(_T("Valgrind returned");
--- End code ---
Resulting in the following snippet :
--- Code: --- wxString CommandLine = _("valgrind --leak-check=yes --xml=yes \"") + ExeTarget + _("\" ") + CommandLineArguments;
// CommandLine = _("valgrind --leak-check=yes \"") + ExeTarget + _("\" ") + CommandLineArguments;
AppendToLog(CommandLine);
wxArrayString Output, Errors;
wxExecute(CommandLine, Output, Errors);
AppendToLog(_T("Valgrind returned");
size_t Count = Output.GetCount();
--- End code ---
Jenna:
--- Quote from: jens on July 30, 2009, 02:35:49 pm ---I don't get any output (except for the three starting lines), if I use a wxLogWindow for debugging purposes.
This might be related to your problem.
--- End quote ---
Valgrind definitely returns, bout both wxArrayString's are empty, the same happens, when I debug the valgrind-plugin.
So it seems to be a problem with wxExecutes redirection of output- and/or error-streams.
Navigation
[0] Message Index
[*] Previous page
Go to full version