[Lazarus] RE : RE : RE : g_variant_new_string: assertion `g_utf8_validate (string, -1, NULL)' failed

Ludo Brands ludo.brands at free.fr
Wed Dec 14 17:22:59 CET 2011


 

AFAIK, the use of constref for cdecl parameters is wrong in libnotify.pas.


Indeed that was the problem. So what does constref is used for ?!

Thanks Ludo
 


 

Constref is passing a value by its reference (as in var paramter) with the
promise that the callee won't change it. In this case you want to pass the
pchar and not a pointer to the pchar (ppchar).
 
Ludo
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111214/efaad10a/attachment-0003.html>


More information about the Lazarus mailing list