Loading ...
Sorry, an error occurred while loading the content.
 

RE: [PrimeNumbers] Re: ECMNET client/server ideas

Expand Messages
  • Eleven Smooth
    ... I haven t been able to make that work. The second copy of ecmserver fails with a message about unable to run multiple copies of this program. I even
    Message 1 of 7 , Mar 22, 2004
      --- Paul Leyland <pleyland@...> wrote:

      > Why separate machines? Surely, all you need is
      > separate directories for each server.
      >

      I haven't been able to make that work. The second
      copy of ecmserver fails with a message about "unable
      to run multiple copies of this program." I even tried
      renaming the executable and the support files. Is
      there some trick I missed to run multiple copies of
      ecmserver on the same machine?

      =====
      --
      ElevenSmooth: Distributed Factoring of 2^3326400-1
      http://www.elevensmooth.com

      __________________________________
      Do you Yahoo!?
      Yahoo! Finance Tax Center - File online. File on time.
      http://taxes.yahoo.com/filing.html
    • mgrogue@wi.rr.com
      In ecmserver.cpp are the lines: #ifdef WIN32 /* miscellaneous windows initializations */
      Message 2 of 7 , Mar 22, 2004
        In ecmserver.cpp are the lines:

        #ifdef WIN32
        /* miscellaneous windows initializations */
        ///////////////////////////////////////////////////////////////////////////
        WSADATA wsaData;
        WSAStartup(MAKEWORD(1,1), &wsaData);

        /* prevent multiple copies from running... */
        if (!allow2) {
        void * Sem = CreateMutex(NULL, FALSE, "EcmServer");
        if ( !Sem || ERROR_ALREADY_EXISTS == GetLastError() ) {
        fprintf(stderr, "Unable to run multiple copies of this application.\n");
        return (0);
        }
        }
        ///////////////////////////////////////////////////////////////////////////
        #endif

        You can comment them out, recompile the server and then see what happens...

        This probably was intended to avoid the problem of having two servers on the same box using the same port. I can look into resolving this issue more gracefully in a future release.

        --Mark
      Your message has been successfully submitted and would be delivered to recipients shortly.