<div dir="ltr">Totally forgot about SetExceptionMask! Remember that I needed to use it in fpGUI application too. I forgot about this because Gtk2 example is working fine. Thanks zeljko, now it is working! Great :D<br><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/3 zeljko <span dir="ltr"><<a href="mailto:zeljko@holobit.net" target="_blank">zeljko@holobit.net</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 10/03/2013 11:50 AM, Krzysztof wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Ok I give up. Could not find simple Gtk3 example in lazarus<br>
implementation. So I found another gtk hello world in C based on Gtk3<br>
from:<br>
<a href="https://developer.gnome.org/gnome-devel-demos/3.6/checkbutton.c.html.en" target="_blank">https://developer.gnome.org/<u></u>gnome-devel-demos/3.6/<u></u>checkbutton.c.html.en</a><br>
. But same error with division by zero:<br>
<br>
var<br>
   window: PGtkWidget;<br>
   app: PGtkApplication;<br>
   status: Integer;<br>
<br>
   procedure activate; cdecl;<br>
   begin<br>
     window := gtk_application_window_new(<u></u>app);<br>
     gtk_window_set_title(<u></u>PGtkWindow(window), 'CheckButton Example');<br>
     gtk_window_set_default_size (PGtkWindow(window), 300, 100);<br>
<br>
     gtk_widget_show_all(window);<br>
   end;<br>
<br>
begin<br>
   g_type_init();<br>
   app := gtk_application_new ('org.example.checkbutton',<br>
G_APPLICATION_FLAGS_NONE);<br>
   g_signal_connect_data(app, 'activate', @activate, nil, nil, 0);<br>
   status := g_application_run (PGApplication(app), argc, argv);<br>
   g_object_unref (app);<br>
end.<br>
</blockquote>
<br>
Have you tried to add (eg. to initialization) ?<br>
SetExceptionMask([<u></u>exDenormalized,exInvalidOp,<u></u>exOverflow,exPrecision,<u></u>exUnderflow,exZeroDivide]);<br>
<br>
<br>
<br>
</blockquote></div><br></div></div></div>