Forgot to post to list:

Hi,

On 22/03/2012 13:34, Steve Cookson wrote:

My current question is what is the second parameter in
wxRichTextXMLHandler::DoLoadFile.  It is defined as follows:

bool DoLoadFile(wxRichTextBuffer* buffer, wxInputStream&  stream)

From the Perl perspective it is a file handle and wxPerl has
transformations for the instances where wxInputStream is wrapped as a
parameter.

But the second parameter does not appear to be mandatory, however without
it, valgrind reports an "uninitialised value" error and I'd like to reduce
these if at all possible.

It is mandatory. I assume your code isn't calling DoLoadFile directly?

If it is, you need $handler->LoadFile( $buffer, $openfilehandle ) instead.

Best Regards

Mark

Reply via email to