<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Francis,<br>
    <br>
    yes, I missed the & operator. But it unfortunately doesn't make
    it work...<br>
    <br>
    I now suspect it has something to do with the axlDoc/axlNode
    variables and their release from memory. Why is that? In the program
    I have another function that also uses axl library in this way,
    which is called before the function I posted that doesn't work.<br>
    So, the first time axl library is used it works - the second time it
    doesn't. I use the memory release functions axl_doc_free and so on.
    That should do the job, no? And in any case the variables are only
    defined locally. I also already tried using different names for the
    axl objects in the different functions. Or does it have to do
    anything with the axl_init() and axl_end() functions? Which are -
    according to the documentation - not even functional right now?<br>
    <br>
    Best regards<br>
    Raphael<br>
    <br>
    <div class="moz-cite-prefix">Am 14.02.2014 17:20, schrieb Francis
      Brosnan Blazquez:<br>
    </div>
    <blockquote cite="mid:1392394831.30251.701.camel@vulcan.aspl.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="GENERATOR" content="GtkHTML/3.30.3">
      Hi Raphael,<br>
      <br>
      <blockquote type="CITE">
        <pre>I've got a problem with parsing a file. I've got a subfunction that 
starts as stated:

int write_frq(int n_pump, double frqs[]) {
     axlError *a_err = NULL;

     axlDoc *doc = NULL; //axl library document object
     axlNode *root = NULL; //axl library root node object
     axlNode *node = NULL; //node object for navigation

     printf("DEBUG - write frq() axl variables defined\n");

     //get doc reference
     doc = axl_doc_parse_from_file("GAtest1_input.xml", a_err);
</pre>
      </blockquote>
      <br>
      ..this must be:<br>
      <br>
      doc = axl_doc_parse_from_file ("GAtest1_input.xml", &a_err);
      // put an & so you pas a axlErr **<br>
      <br>
      ...I wonder how your compiler is missing this error :-??<br>
      <br>
      Best Regards,<br>
      <table cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr>
            <td>
              <pre>-- 
Francis Brosnan Blázquez <<a moz-do-not-send="true" href="mailto:francis.brosnan@aspl.es">francis.brosnan@aspl.es</a>>
ASPL
91 134 14 22 - 91 134 14 45 - 91 116 07 57

AVISO LEGAL

Este mensaje se dirige exclusivamente a su destinatario. Los datos
incluidos en el presente correo son confidenciales y sometidos a secreto
profesional, se prohíbe divulgarlos, en virtud de las leyes vigentes. Si
usted no lo es y lo ha recibido por error o tiene conocimiento del mismo
por cualquier motivo, le rogamos que nos lo comunique por este medio y
proceda a destruirlo o borrarlo.

En virtud de lo dispuesto en la Ley Orgánica 15/1999, de 13 de
diciembre, de Protección de Datos de Carácter Personal, le informamos de
que sus datos de carácter personal, recogidos de fuentes accesibles al
público o datos que usted nos ha facilitado previamente, proceden de
bases de datos propiedad de Advanced Software Production Line, S.L.
(ASPL). No obstante, usted puede ejercitar sus derechos de acceso,
rectificación, cancelación y oposición dispuestos en la mencionada Ley
Orgánica, notificándolo por escrito a:
ASPL - Protección Datos, C/Antonio Suárez 10 A-102, 28802, Alcalá de
Henares (Madrid).
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </blockquote>
    <br>
  </body>
</html>