FW: [xml] libxml2 and windows

Title: FW: [xml] libxml2 and windows

After a little more research, I'm wondering if the problem might be
that I have yet to turn my application code into dlls (the application
is now a half dozen or so static libs). Some things that I've just read
imply that any storage gotten in a dll cannot be released by code in
a static library. Comments?

-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Wed 6/7/2006 11:22 AM
To: Mike Martin
Cc: Rob Richards; xml gnome org
Subject: Re: [xml] libxml2 and windows

On Wed, Jun 07, 2006 at 11:17:08AM -0400, Rob Richards wrote:
> Mike Martin wrote:
> >
> >Hi all-
> >
> >I'm sure this will end up being a silly question with an obvious
> >answer, but not being windows savvy, I'm stumped. It appears to
> >me that any storage acquired by any function in the libxml2 dll
> >cannot be freed by any function in any other dll (my application
> >code). The exact same code works perfectly well in the Linux
> >environment, and, believe it or not, in the IBM mainframe z/OS
> >environment, but fails miserably in the windoes environment.
> >For instance, I can acquire storage with xmlStrdup and
> >consequently read that storage from anywhere, but when I'm
> >done with it, a call to free() results in an Access Violation.
> >
> You want to use xmlFree()

  And if this doesn't work, check all tour compilers and flags.
  Not being a Windows user I still noticed that people tend to report
those problems if the library they link together to produce the final
executable have not being compiled in the exact same environment with the
exact same flags. Make sure everything is compiled in the same way with
the same tools.


Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]