[xml] xmlNewTextWriterFilename Win32 Problem
- From: Coleman Brumley <coleman brumley comcast net>
- To: xml gnome org
- Subject: [xml] xmlNewTextWriterFilename Win32 Problem
- Date: Fri, 31 Mar 2006 15:46:11 -0500
I have a strange problem with xmlNewTextWriterFilename on Win32.
I have two file name strings:
char outname[MAX_PATH]={(char)0};
static char fname[MAX_PATH]={(char)0};
outname gets passed to a function XMLWriteData(const char *file) which
in turn calls xmlNewTextWriterFilename(file,0);. As long as the fname
variable (which gets passed to XMLReadData via the CreateThread
function) is static, xmlNewTextWriterFilename crashes and generates an
access violoation in NTDLL.
As soon as I change the declarations to:
char outname[MAX_PATH]={(char)0};
/*static*/ char fname[MAX_PATH]={(char)0};
xmlNewTextWriteFilename works fine.
Any ideas?
- Coleman
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]