You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/07/24 16:05:18 UTC

[Bug 2765] New: - Problem deleting memory allocated by XMLString::transcode

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2765

*** shadow/2765	Tue Jul 24 07:05:17 2001
--- shadow/2765.tmp.19235	Tue Jul 24 07:05:18 2001
***************
*** 0 ****
--- 1,29 ----
+ +============================================================================+
+ | Problem deleting memory allocated by XMLString::transcode                  |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2765                        Product: Xerces-C++              |
+ |       Status: NEW                         Version: 1.5.1                   |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Windows 9x              |
+ |     Priority: Other                     Component: Utilities               |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-c-dev@xml.apache.org                                  |
+ |  Reported By: paul@fsc.co.uk                                               |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When I try to delete memory allocated by XMLString::transcode, an assertion 
+ failure is caused somewhere in the delete procedure.  Assertion faults are only 
+ caused in debug mode, so if NDEBUG is defined there is no problem.
+ 
+ e.g.
+ 
+ /* 
+  * The following will cause an assertion fault in debug mode.
+  * Assume XMLChString is a pointer to some unicode string. (of type XMLCh *)
+  */
+ 
+ char * charString = XMLString::transcode(XMLChString);
+ delete charString;

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org