nanogui: Reconnection problem...


Previous by date: 3 Aug 2001 07:52:36 -0000 Re: Who can tell me whether MicroWindows API supports multi-thread or multi-process?, Yan Yan
Next by date: 3 Aug 2001 07:52:36 -0000 Re: Who can tell me whether MicroWindows API supports multi-thread or multi-process?, Gary James
Previous in thread:
Next in thread: 3 Aug 2001 07:52:36 -0000 Re: Reconnection problem..., Gary James

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]

Previous by date: 3 Aug 2001 07:52:36 -0000 Re: Who can tell me whether MicroWindows API supports multi-thread or multi-process?, Yan Yan
Next by date: 3 Aug 2001 07:52:36 -0000 Re: Who can tell me whether MicroWindows API supports multi-thread or multi-process?, Gary James
Previous in thread:
Next in thread: 3 Aug 2001 07:52:36 -0000 Re: Reconnection problem..., Gary James


Powered by ezmlm-browse 0.20.