[xml] Access violation at VS.net 2003

I've got the following lines, which work perfectly under MacOS X (10.3,
XCode 1.1 with libxml 2.6.5, gcc 3.something):

xmlParserCtxtPtr m_contextParser;
m_contextParser = xmlNewParserCtxt();
bool readConfig(char *_pName) {
if (!(m_configFile = xmlCtxtReadFile(m_contextParser, _pName, NULL,

I now tried to compile that with Visual Studio.Net 2003 (Windows XP) with
libxml 2.6.7 downloaded from here: http://www.zlatkovic.com/pub/libxml/.
Ok - that works fine, compiles and links.
Warning here:
warning LNK4098: defaultlib 'LIBC' conflicts with use of other libs; use
(o_O ?oro?)

When I now start my Program everything works up to xmlCtxtReadFile() where
I get the following error:
First-chance exception at 0x00000001 in [blah]: 0xC0000005: Access
violation reading location 0x00000001

Well - I don't see where that comes from, although 1 as an adress looks
rather hand-made. Anyway - as I said - works fine at MacOS X, so no idea
where to start.

Any ideas here?


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