nanogui: Thread: Reconnection problem...


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Reconnection problem...
From: "Constantin Pavlicu" ####@####.####
Date: 3 Aug 2001 07:52:36 -0000
Message-Id: <C4986887AFD0FE4FAB6D5EB312E9BDD316FD82@ncemx.smart-fusion.com>

I don't seem to be able to reconnect to the nano-x server from the same
process: basically after a GrOpen() followed by GrClose() calling
GrOpen() again fails (the server  is started with -p so it doesn't quit
after the first connection is closed). Quitting and restarting the app
(the server doesnt need restarting) works ok. I'm using 0.89pre7, can
anyone else reproduce this or is just my system?

Sample code to reproduce the problem:

#include <stdio.h>
#include "nano-X.h"
 
int main(int argc, char *argv[]){
 
  int connect;
 
 
  connect = GrOpen();
  if(connect < 0) {
    printf("Connection failed (1)\n");
    exit(1);
  }
  sleep(2);
  GrClose();
 
  sleep(2);
 
  connect = GrOpen();
  if(connect < 0) {
    printf("Connection failed (2)\n");
    exit(1);
  }
  printf("Reconnected ok.\n");
  sleep(2);
  GrClose();
   
 
}

[Content type application/ms-tnef not shown. Download]
Subject: Re: [nanogui] Reconnection problem...
From: "Gary James" ####@####.####
Date: 3 Aug 2001 13:42:33 -0000
Message-Id: <3B6A7248.32639.1D3E9F@localhost>

Hi,

I submitted a fix for this problem back in March. I think Greg has it 
in CVS but noyt in a release yet. Take a look at this link...

http://www.linuxhacker.org/cgi-bin/ezmlm-cgi/5/4208

Gary James

> I don't seem to be able to reconnect to the nano-x server from the same
> process: basically after a GrOpen() followed by GrClose() calling
> GrOpen() again fails (the server  is started with -p so it doesn't quit
> after the first connection is closed). Quitting and restarting the app
> (the server doesnt need restarting) works ok. I'm using 0.89pre7, can
> anyone else reproduce this or is just my system?


--
Gary A James, Critical Link, LLC         
Voice:  315.425.4045 x218  
Fax:    315.425.4048    
E-Mail: ####@####.####
WEB:    http://www.criticallink.com
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.