RE: Problem initializing and terminating XMLPlatformUtils

2001-09-07 Thread Casey Schmit
-Original Message- From: Jesse Pelton [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 10:55 AM To: '[EMAIL PROTECTED]' Subject: RE: Problem initializing and terminating XMLPlatformUtils I'm glad you've managed to join the list, Mark. The basic

RE: Problem initializing and terminating XMLPlatformUtils

2001-09-07 Thread Jesse Pelton
001 14:00 To: [EMAIL PROTECTED] Subject: RE: Problem initializing and terminating XMLPlatformUtils Hi, I've made a partial fix that suited my needs that notifies classes that lazy data has been cleaned up, it's a little inelegant though (you need to manually maintain a list of classes to call

Re: Problem initializing and terminating XMLPlatformUtils

2001-09-06 Thread legaultc
Given that the XMLDeleterFor<> is used to released memory allocated for a pointer of global lifetime I'm not sure this is a problem. Just to make it clear, here's the change that I propose: XMLDeleterFor.hpp - 93c93 < XMLDeleterFor(T** toDelete); --- > XMLDe

RE: Problem initializing and terminating XMLPlatformUtils

2001-09-06 Thread Jesse Pelton
It doesn't fix all cases. Take a look at gScannerMutex() in src/internal/XMLScanner.cpp: it allocates some memory, for which it registers and XMLDeleterFor, but it also sets a flag indicating that the memory was registered. There's no mechanism for resetting the flag, so the flag is set wrong once

Re: Problem initializing and terminating XMLPlatformUtils

2001-09-05 Thread Dean Roddey
If you copied the pointer somewhere else, i.e. orphaned it off to someone else, or just copied it somewhere, the deleter would write off into the ozone. -- Dean Roddey The Charmed Quark Controller Charmed Quark Software [EMAIL PROTECTED] http://www.charmedquark.com "If it

Re: Problem initializing and terminating XMLPlatformUtils more than once in a program

2001-05-08 Thread Boris Tarasyuk
I solved this problem using FreeLibrary(hModule); LoadLibrary(hModule); every time I need reinitialize parser. Boris - Original Message - From: "Mitchell, Raymond" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 6:00 PM Subject: Problem initializing and te

RE: Problem initializing and terminating XMLPlatformUtils more than o nce in a program

2001-05-07 Thread Mitchell, Raymond
ed to completely manage Xerces-C independent of each other. Are there any plans to allow this kind of use of Xerces-C? Thanks, Ray -Original Message- From: Dee Jay Randall [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:21 PM To: [EMAIL PROTECTED] Subject: Re: Problem initializin

Re: Problem initializing and terminating XMLPlatformUtils more than o nce in a program

2001-05-07 Thread walker . curtis
Hi Raymond, The short answer is you can't terminate more than once. There are many discussions on this topic in the mailing list archive. http://marc.theaimsgroup.com/?l=xerces-c-dev Cheers, Walker [EMAIL PROTECTED] on 05/07/2001 03:16:51 PM Please respond to [EMAIL PROTECTED]@SMTP To:

Re: Problem initializing and terminating XMLPlatformUtils more than o nce in a program

2001-05-07 Thread Dee Jay Randall
The API doc says: "void XMLPlatformUtils::Initialize () [static] Perform per-process parser initialization." so I assume it isn't mean to be called repeatedly. It is also written at http://xml.apache.org/xerces-c/program.html "Key points to remember when using the C++ DOM classes: - Create

Re: Problem initializing and terminating XMLPlatformUtils more than o nce in a program

2001-05-07 Thread Scott A. Herod
Hi Ray, To add a bit to Dean's comment. I've faced this as well. The Initialize and Terminate code keeps a static counter of how many times you've entered them. Initialze increments it and Terminate decrements it. So, it's safe to call Initialize multiple times and Terminate until you "undo

Re: Problem initializing and terminating XMLPlatformUtils more than o ncein a program

2001-05-07 Thread peiyongz
Hi, Ray, The FAQ answer your question very clearly. pls refer to http://xml.apache.org/xerces-c/faq-parse.html#faq-22. Regards, Peiyong Zhang XML Parsers Development IBM Toronto Laboratory email: [EMAIL PROTECTED] Phone: (416)448-4088; Fax:

RE: Problem initializing and terminating XMLPlatformUtils more than o nce in a program

2001-05-07 Thread Dean Roddey
Its the latter. You cannot recall Initialize() after Terminate() is called. -- Dean Roddey Software Geek Extraordinaire Portal, Inc [EMAIL PROTECTED] -Original Message- From: Mitchell, Raymond [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:01 PM To: '[EMAIL PROTECT