Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8242179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:04:44+00:00 2026-06-07T21:04:44+00:00

I wrote a C/S application using udp and it keeps giving me errors, which

  • 0

I wrote a C/S application using udp and it keeps giving me errors, which I believe has something to do with the way I use threads.

When the client program starts, it first initializes a login window and starts a new thread to listen to the response from the server. After it submits user name and password, the new thread will receive a message indicating whether it submitted the right info. If it did, then the thread would initializes the main GUI window. But it would give strange errors:

Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0

or

python: Fatal IO error 0 (Success) on X server :0.0

I found a similar question here, but it’s not solved.

Some say GUI should only be manipulated in the main thread, but others say it’s not true.

I also tried using gdk_threads_enter() and gdk_threads_enter() around gtk_main() and the code where I initialize window in that listen thread. But it didn’t seem to work.

I don’t know much about threads so be patient when pointing out where I have done wrong.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T21:04:45+00:00Added an answer on June 7, 2026 at 9:04 pm

    These error messages, I have found, pop up from time to time when you are not holding the GTK lock properly.

    You should put gdk_threads_enter() and gdk_threads_leave() around the original gtk_main() call, and also around every call to a GTK function that takes place

    • outside the thread from which you called gtk_main()
    • but not in a signal, idle, or timeout handler.

    This usage is on its way out though as I understand, and in future versions of GTK it will only be possible to manipulate GTK from the main thread.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote a server-client rmi application and I'm using MacOsX and Ubuntu laptops to
I'm trying to write a client-server console application on C# using UDP. And i
I wrote an application which generates an XML file using XmlReader and XmlWriter (with
I wrote a C++ application on linux using cstdio. It contains one function which
I wrote an application using CakePHP. I set everything to use UTF-8 encoding (the
I wrote an application using ASP.NET MVC, in this application I have an Index
I'm developing a JavaScript application using Google Visualization API. I wrote a event listener
I wrote a chat application for Android using SocketChannel. It connects successfully with the
I wrote a small application on Redhat Linux 6 using g++ 4.4.6. After compilation,
I'm using JScript.NET to write scripts in a C# WinForms application I wrote. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.