[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Xlib Connection refused - Urgent

void main() {

const char *ps_argv[] = { "pgaccess", "imart_db", 0 };

const char *ps_envp[] = { "PATH=/bin:/usr/bin","USERNAME=imart",
"DISPLAY=:0", 0 };
execve("/usr/bin/pgaccess", ps_argv, ps_envp);


Error Encountered

Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
Application initialization failed: couldn't connect to display ":0"
Error in startup script: invalid command name "image"
    while executing
"image create bitmap dnarw -data  {
#define down_arrow_width 15
#define down_arrow_height 15
static char down_arrow_bits[] = {
    (file "/usr/lib/pgsql/pgaccess/main.tcl" line 5)


Can anybody help me out of this... Is there any procedure to authorize
my program with X...