fork problem
- From: Chan Wai <h0023427 eee hku hk>
- To: gtk-list gnome org
- Subject: fork problem
- Date: Wed, 26 Mar 2003 16:33:58 +0800
Dear all,
I have tried to write a program, which also act as a server when I run it.
I use gtk/gnome to build an interface for it. However, when I run it, there is
error on the child programme:
Gdk-ERROR **: BadIDChoice (invalid resource ID chosen for this connecion)
serial 30742 error_code 14 request_code 1 minor_code 0
my program can be simplified as follow
int main(int argc, char *argv[])
{
/* some gnome setting */
if ( fork() ) {
/* server programme */
else
gtk_main();
return 0;
}
when I run the server programme in the child and run the gtk_main() in the
parent, the same problem comes out and the server programme can't work at
this time.
Could you plz help me on the above issue?? Thank you very much.
Best wishes,
Wai
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]