[gtkada] Cairo Context 0x0

bertus.dries at planet.nl bertus.dries at planet.nl
Thu Jul 21 11:52:30 CEST 2016


I am creating a new Drawing_Area.
I have packed the drawing Area in a Viewport which is packed in a scrolled window.
Now have the program line:
CR := Create(Get_Window (MainWindow.DrawingArea));
where MainWindow.DrawingArea is type Gtk_Drawing_Area with the value 0x4694f98
created with Gtk_New (MainWindow.DrawingArea);
The Cairo context CR has however a value 0x0 which finally results when using Save(CR);
in:
Program received signal SIGSEGV, Segmentation fault.
cairo_save (cr=0x0) at ../../src/src/cairo.c:409
409 ../../src/src/cairo.c: No such file or directory.
Current language: auto
The current source language is "auto; currently c".

What must I do to create a valid CR?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/gtkada/attachments/20160721/22da6589/attachment.html>


More information about the gtkada mailing list