[rcml-devel] Bug in Archive.cpp fixed
Status: Pre-Alpha
Brought to you by:
jdavidb
From: <jx...@ga...> - 2000-11-19 22:33:27
|
This is the details of the bug I fixed in the writeOut() method of Archive.cpp, for anyone who is interested. If you're not interested, don't worry about it. Our previous driver program called readIn() followed by writeOut() on an Archive. This was a nice demonstration of the fact that these methods work. At some point, group II was having problems with a core dump. It turned out Xerces needs a method called XMLPlatformUtils::Initialize() called before it can do anything. Attempts to create a DOM_Document object cause a segmentation fault and core dump if that method has not been called. For our previous driver, readIn() called this initialization method. writeOut() did not. So, the driver worked fine, because the code had been called, but once we were attempting to do code that did a writeOut() without ever doing a readIn(), there was a crash and core dump. I put the initialization call in writeOut(). It might be better to insist that this code must be called in main(); I do not know what will happen now if someone calls readIn() and writeOut() in the same program; that will call the initialization method twice. I'll be checking. jdb |