[xml] Memory lacks using XMLLIB under MPE OS

Date view Thread view Subject view Author view

From: Grasso Massimiliano (Massimiliano.Grasso@elsag.it)
Date: Thu Oct 12 2000 - 04:23:22 EDT


We're trying to use the XML library under the OS MPE 5.5 of HP 3K
calculators. To compile the sources we had to write some system routines (),
non existent under MPE.
In our applicaton we have a loop and for each iteration we perform a parsing
and a validation of a very simple XML syntax. In lines below there is a
little sample of the source that we have written:

xmlDocPtr doc;
xmlValidCtxt cvp;
char *own_memory_buffer;
int size;

for(;;)
{
        // alloc own_memory_buffer
      // Load own_memory_buffer with XML file

     doc=xmlParseMemory(own_memory_buffer,size);

    cvp.userData = (void *) stderr;
    cvp.error = (xmlValidityErrorFunc) fprintf;
    cvp.warning = (xmlValidityWarningFunc) fprintf;

    if(xmlValidateDocument(&cvp, doc))
       printf( " DOC OK!!!\n");
    else
       printf( "DOC Error !!!\n");

    fflush(stdout);

    xmlFreeDoc(doc);
    xmlCleanupParser();

    free(own_memory_buffer);

       // Check memory used with MPE routine mallinfo()
{
  

When we checked the memory allocated for the process we discovered that it
was increasing at each iteration. Perhaps our problem is in the use of
deallocation routines? Do someone use in the same way the library under
other OS without problems? In the latest case probably the problem could be
either in our porting or in the OS itself.
Thank a lot for help, sorry for English...

Massimiliano Grasso
* massimiliano.grasso@elsag.it
* +390106582940

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Oct 12 2000 - 04:43:51 EDT