<div class="gmail_extra">On Sun, Nov 11, 2012 at 7:34 AM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch" target="_blank">dominik@itis.ethz.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":7ny">Unfortunately, I do not see any related error messages in valgrind and<br>
the whole va_list machinery is a bit obfuscated. What I experimentally<br>
discovered, however, is that the problem goes away if the two<br>
functions are directly provided in the same source file in C-style. As<br>
soon as they go out to a class the problem occurs.<br></div></blockquote><div><br></div><div>They'll be okay as _static_ class functions. I wasn't aware that va_list doesn't work properly from a member function, but it does modify the calling sequence. It could be compiler-dependent. C++ is not my favorite language.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":7ny">
But I found a very promising solution: PetscVFPrintf. It solves my<br>
problem for my own Print function. But I do not seem to find a<br>
corresponding function for synchronized printing (PetscFPrintf). Any<br>
clues how to use PetscVFPrintf for synchronized printing please?</div></blockquote></div><br></div><div class="gmail_extra">PetscSynchronizedVFPrintf is missing, but should be added.</div>