Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Issues with creation of new thread

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Fri, 1 May 2009 09:23:37 -0700

On May 1, 2009, at 5:04 AM, harsha gampa wrote:

In wireshark , gtk/main.c code , ther's a call to gtk_main() where the main thread control is given to gtk.

I need to automate a particular user interaction i.e. select the RTP/Stream Analysis ... from menu .

For that i have written a small code as follows :
Just before the call to gtk_main() , i have created a thread

Don't do that. There is no guarantee that you can safely do that, as you've discovered; you're running into errors that are, I suspect, caused by the GTK+ event loop running in parallel in more than one thread (one of which says so explicitly).