Re: Glib::TimeoutSource and Glib::IOSource



Well, if its any help on my pc it seg faults one step earlier....

rob whisper ~ $ ./a.out
ONCE
  creating
  connecting
  attaching
  destroying
TWICE
  creating
Segmentation fault

Leaving me with a gut feeling that it might not like the RefPtr being
reinitialised... so i added in a src.clear() at the end of the DoIt
function and it now works.. but with warnings saying that assertion
src!=null failed... So seems like the RefPtr isn't cleaning itself up
properly after the destroy....

Rob.



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