[ http://issues.apache.org/jira/browse/XERCESC-1420?page=comments#action_66470 ] David Bertoni commented on XERCESC-1420: ----------------------------------------
I can certainly generalize it, since we could probably use it for other things -- good idea! As far as castTo() returning a reference -- I felt there might be times where castTo() could be called with a null pointer, and you'd want to get back a null pointer of the appropriate type, so that's why I made it a pointer. > XMLPlatformUtils::makeMutex() creates mutex objects using the C++ runtime > heap instead of using a MemoryManager instance > ------------------------------------------------------------------------------------------------------------------------ > > Key: XERCESC-1420 > URL: http://issues.apache.org/jira/browse/XERCESC-1420 > Project: Xerces-C++ > Type: Bug > Components: Utilities > Versions: 2.6.0 > Reporter: David Bertoni > Assignee: David Bertoni > Priority: Blocker > Attachments: XMLMutexHolder.c, XMLMutexHolder.hpp, patch.txt > > XMLPlatformUtils::makeMutex() needs to accept a MemoryManager instance as a > parameter to use pluggable memory management. As it stands now, mutex > objects on the various platforms are created using the C++ run-time heap. > This is causing memory allocation issues and crashes in our application. > I am preparing a patch, but it covers all platforms, so I won't be able to > test every one of them. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
