On Thu, Mar 3, 2016 at 12:45 PM, Lance Dillon riffraff169@yahoo.com wrote:
However:
int main() { GTK2.setup_gtk(); object btn=GTK2.Button("Raise an exception"); object win=GTK2.Window(0)->add(btn)->show_all(); win->signal_connect("destroy",lambda() {exit(0);},0); btn->signal_connect("clicked",lambda() {error("Baboom!\n");}); return -1; }
Adding another parameter of 0 to signal_connect() fixes it.
Not on my system, so I suspect this is another example of pushing the bug around until it stops actually segfaulting, but not actually curing it. On mine, this one still segfaults.
ChrisA