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

Ludo Brands ludo.brands at free.fr
Wed Dec 14 16:52:44 CET 2011


 

Hello,

I've created a short
<https://github.com/ik5/libnotify-fpc/blob/master/tests/test_notify.lpr>
example to display how to use libnotify in Pascal.
The problem is that I'm getting the following exception:

(process:7633): GLib-CRITICAL **: g_variant_new_string: assertion
`g_utf8_validate (string, -1, NULL)' failed
(process:7633): GLib-CRITICAL **: g_variant_new_string: assertion
`g_utf8_validate (string, -1, NULL)' failed
(process:7633): GLib-CRITICAL **: g_variant_new_string: assertion
`g_utf8_validate (string, -1, NULL)' failed

The text as you can see, is pure "ASCII", so what am I missing or doing
wrong here ? 

Ido
 

Forgot to call gtk_init?
 
Ludo 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111214/9cb2e8a1/attachment-0003.html>


More information about the Lazarus mailing list