[fpc-pascal] Libxml2 - How to get messages on Linux?
Michael Van Canneyt
michael at freepascal.org
Thu May 24 09:37:30 CEST 2018
On Wed, 23 May 2018, Gabor Boros wrote:
> Same problem with Win64. So not Linux specific.
Are these functions callbacks ? If so, is the calling convention correct ?
Michael.
>
> Gabor
>
> 2018. 05. 22. 10:06 keltezéssel, Gabor Boros írta:
>> Hi All,
>>
>> I need to accomplish validate XML files with an XSD. Found libxml in
>> packages and works as expected with Win32. But I have problem with
>> messages on Linux 64bit. Got %s instead the real message text. I use the
>> below code to get the messages. Any idea why not works with Linux64 bit?
>>
>> var
>> SL_Warning,SL_Error:TStringList;
>>
>> procedure SchemaValidityWarningFunc(ctx: Pointer; const msg: PChar);
>> begin
>> SL_Warning.Add(msg);
>> end;
>>
>> procedure SchemaValidityErrorFunc(ctx: Pointer; const msg: PChar);
>> begin
>> SL_Error.Add(msg);
>> end;
>>
>> Gabor
>> _______________________________________________
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list