Ignore:
Timestamp:
Nov 6, 2014, 5:27:16 PM (10 years ago)
Author:
david
Message:
  • bug fix on C services execution
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PublicaMundi_David-devel/zoo-project/zoo-kernel/zoo_service_loader.c

    r531 r532  
    515515#endif
    516516#endif
    517               r_inputs = getMapFromMaps (m, "lenv", "Identifier");
    518 #ifdef DEBUG
    519               fprintf (stderr, "Try to load function %s\n", r_inputs->value);
     517#ifdef DEBUG
     518              fprintf (stderr, "Try to load function %s\n", s1->name);
    520519#endif
    521520              typedef int (*execute_t) (maps **, maps **, maps **);
    522521#ifdef WIN32
    523522              execute_t execute =
    524                 (execute_t) GetProcAddress (so, r_inputs->value);
     523                (execute_t) GetProcAddress (so, s1->name);
    525524#else
    526               execute_t execute = (execute_t) dlsym (so, r_inputs->value);
     525              execute_t execute = (execute_t) dlsym (so, s1->name);
    527526#endif
    528527
     
    535534#endif
    536535                  char *tmpMsg =
    537                     (char *) malloc (2048 + strlen (r_inputs->value));
     536                    (char *) malloc (2048 + strlen (s1->name));
    538537                  sprintf (tmpMsg,
    539538                           _
    540539                           ("Error occured while running the %s function: %s"),
    541                            r_inputs->value, errstr);
     540                           s1->name, errstr);
    542541                  errorException (m, tmpMsg, "InternalError", NULL);
    543542                  free (tmpMsg);
    544543#ifdef DEBUG
    545544                  fprintf (stderr, "Function %s error %s\n",
    546                            r_inputs->value, errstr);
     545                           s1->name, errstr);
    547546#endif
    548547                  *eres = -1;
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