Re: Segmentation Fault Question



martyn 2 russell bt com wrote:

Is it legal to pass gtk_init a pair of NULLs?



It should be.  I usually pass (0, NULL) and if I remember correctly on Linux
NULL is just a (void*) cast of 0.  On Windows it is JUST and integer of
value 0.

Certainly neither at compile or run-time does there appear to be a problem with the line. If I leave it in and remove any other call to GTK then the program runs fine.

Mel




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