Hi there,
This is a second call :),
I'm running this simple test program on Windows NT 4, using xerces version
1.3.0 build with Visual C++:
int main(int argc, char* argv[])
{
char buffer[5000];
XMLPlatformUtils::Initialize();
DOMParser* parser = new DOMParser;
FILE* stream = fopen("D:\\Temp\\test.xml", "r");
int bufferSize = fread(buffer, sizeof(char), 5000, stream);
fclose(stream);
while (true)
{
MemBufInputSource memBuff((XMLByte*)buffer, bufferSize, "");
parser->parse(memBuff);
Sleep(10);
}
delete parser;
return 0;
}
To my surprise, calling DOMParser::parse creates a lot of memory page
faults! (the test.xml file is less then 5000 bytes). What am I doing wrong?
How can I eliminate these horrible page faults, my DOMParser creates?
thanks,
Shlomi.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]