Ignore:
Timestamp:
Sep 14, 2010, 2:04:55 PM (14 years ago)
Author:
djay
Message:

Update of both ZOO Kernel and ZOO Services (ogr base-vect-ops ServicesProvider?).
All the ZCFG files have been corrected to remove all references to wrong metadata (Test = Demo) to avoid validation issues.
Main Memory leaks has been removed from this version.
Addition of the Simplify Service in the C ogr base-vect-ops ServicesProvider? and addition of the Python version (without Simplify).
Update of the configure.ac and Makefile.in to follow dicussions on the mailing list and ensure to use our cgic206 and not another one, path to our cgic library is now directly in the Makefile.in file.
Accept the "-" character to name inputs, to solve issue on GRASS 7 integration.
Addition of the extension keyword for ZCFG file to be able to store resulting outputs in a file name using the extension suffix.
This version after a testing period shall be considerate as 1.0.1 version of the ZOO Project.

File:
1 edited

Legend:

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

    r1 r9  
    8686    addToMap(err,"code","NoApplicableCode");
    8787    printExceptionReportResponse(m,err);
     88    freeMap(&err);
     89    free(err);
    8890    (*jvm)->DestroyJavaVM(jvm);
    8991    return 1;
     
    148150        addToMap(err,"code","NoApplicableCode");
    149151        printExceptionReportResponse(m,err);
     152        freeMap(&err);
     153        free(err);
    150154        (*jvm)->DestroyJavaVM(jvm);
    151         return 1;
     155        return -1;
    152156      }
    153157    }
     
    155159      char tmpS[1024];
    156160      sprintf(tmpS, "Cannot find function %s \n", s->name);
    157       map* tmps=createMap("text",tmpS);
    158       printExceptionReportResponse(m,tmps);
     161      map* err=createMap("text",tmpS);
     162      printExceptionReportResponse(m,err);
     163      freeMap(&err);
     164      free(err);
    159165      (*jvm)->DestroyJavaVM(jvm);
    160       exit(-1);
     166      return -1;
    161167    }
    162168  }else{
    163169    char tmpS[1024];
    164170    sprintf(tmpS, "Cannot find function %s \n", tmp->value);
    165     map* tmps=createMap("text",tmpS);
    166     printExceptionReportResponse(m,tmps);
    167     if (PyErr_Occurred())
    168       PyErr_Print();
     171    map* err=createMap("text",tmpS);
     172    printExceptionReportResponse(m,err);
     173    freeMap(&err);
     174    free(err);
     175    (*jvm)->DestroyJavaVM(jvm);
     176    return -1;
    169177  }
    170178  (*jvm)->DestroyJavaVM(jvm);
     
    312320    cmap->next=NULL;
    313321    if(final_res==NULL){
    314       final_res=cmap;
     322      final_res=dupMaps(&cmap);
    315323    }else
    316       addMapsToMaps(final_res,cmap);
     324      addMapsToMaps(&final_res,cmap);
    317325    final_res->next=NULL;
     326    freeMaps(&cmap);
     327    free(cmap);
     328    cmap=NULL;
    318329    res=NULL;
    319330  }
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