[Lazarus] Gtk3 "hello world" application crash

Andrew Haines AndrewD207 at aol.com
Sun Oct 6 16:44:44 CEST 2013


On 10/01/2013 04:09 PM, Krzysztof wrote:
> Hi,
>
> According to this wiki page: http://wiki.freepascal.org/Gtk%2B3
> I downloaded latest gtk3 headers from:
> http://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/
>
> I have very simple Hello World application which is working fine on GTK2:
>
> gtk_init(@argc, @argv);
> windows := gtk_window_new(GTK_WINDOW_TOPLEVEL);
> gtk_widget_show(window);
> gtk_main();
>
> but on GTK3 it crash on gtk_main(); (but I see main window for a few
> milliseconds).
>

I am a bit late to answer but there are a few examples here:

http://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/bindings/gtk3/examples/

Regards,

Andrew Haines





More information about the Lazarus mailing list