Re: segmentation fault in XDrawLine.



David Rohde <s371117 student uq edu au> writes:
I have recently caused a segmentation fault in XDrawLine, by calling the
following function

gdk_draw_line(widget, widget->style->black_gc, 0, 0, 10, 10);

Could anyone explain why.


Bad pointers or memory corruption, use MALLOC_CHECK_=2 on Linux (read
'man malloc') and use gdb.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]