Ignore:
Timestamp:
May 30, 2016, 7:12:12 PM (4 years ago)
Author:
djay
Message:

Fix issue when running service in asynch mode with missing parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal_java.c

    r748 r765  
    8585  fprintf(stderr,"(%s)\n",oclasspath);
    8686#endif
    87 
     87#ifndef WIN32
    8888  int nb=1;
     89#endif
    8990  int nbc0=0;
    9091  maps* javaXXMap=getMaps(*main_conf,"javaxx");
     
    9899  }
    99100#ifdef WIN32
    100   nb=2+nbc0+nbc1;
    101   JavaVMOption options[nb];
     101  //#define nb (2+nbc0+nbc1)
     102  const int nb=2+nbc0+nbc1;
     103  JavaVMOption *options=(JavaVMOption*)malloc(nb*sizeof(JavaVMOption));
    102104#else
    103105  JavaVMOption options[nb+nbc0+nbc1+1];
     
    259261    free(options[start+i].optionString);
    260262  }
     263#ifdef WIN32
     264  free(options);
     265#endif
    261266  return res;
    262267}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png