[gtkmm] Glib::Thread and stack size



Hello.

I have finally threads up and running. I have the "main thread" deaing with gtkmm and a separate thread grabbing images from a video device, and communicating with the GUI with a instance of the Glib::Dispatcher.
Unfortunately, I still have some problems with them.

When I try to do some image processing in the thread, I get a segmentation fault. It seems that troubles are coming from the thread stack size. I have tried to set the thread stack size manually using Glib::Thread::create (const SigC::Slot0<void>& slot, unsigned long stack_size, bool joinable, bool bound, ThreadPriority priority)

But if I set the stack size to more than 8000000 create(..) does not return.

Why is that? Any suggestion?


Thank you very much -once again- in advance.

Regards,
Enrico Costanza





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