Error when executing my app
- From: "Chi Wa Au" <cau erggroup com>
- To: gtk-app-devel-list gnome org
- Subject: Error when executing my app
- Date: Tue, 27 Feb 2001 17:01:29 +0800
I have written a simple test program:
#include <gtk/gtk.h>
int main(int argc, char *argv[])
{
GtkWidget *win, *label;
gtk_init(&argc, &argv);
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_signal_connect(GTK_OBJECT(win), "delete_event",
GTK_SIGNAL_FUNC(gtk_main_quit), NULL);
label = gtk_label_new("Hello");
gtk_container_add(GTK_CONTAINER(win), label);
gtk_widget_show_all(win);
gtk_main();
return 0;
}
The compilation was OK but when I tried to execute the compiled program,
the following error was returned:
Gdk-ERROR **: BadAccess (attempt to access private resource denied)
serial 75 error_code 10 request_code 88 minor_code 0
Can anyone tell me what the error is and where I can find the definitions
for 'error_code', 'request_code' and minor_code.
Thanks in advance,
Au Chi Wa
ERG
---------------------------- ERG Group --------------------------
The contents of this email and any attachments are confidential
and may only be read by the intended recipient.
-----------------------------------------------------------------
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]