Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » ParseXML intermittent crash
Re: ParseXML intermittent crash [message #35820 is a reply to message #35818] Fri, 23 March 2012 21:45 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
nixnixnix wrote on Fri, 23 March 2012 19:28

Yes that appears to have fixed it. I am not using multithreading so I didn't think I had to worry about things not happening in order.

After building with GUI configuration, I found, that real cause is correlation between pBuf dynamic array and ParseXML function. With String variable and LoadFile function it's ok.

Edit:
The XmlParser expects zero terminated characters. Therefore, changing following source code (from line 332):
	int64 k = iFile.GetLeft();
	char* pBuf = new char[k];

To:
	int64 k = iFile.GetLeft();
	char* pBuf = new char[k + 1];
	pBuf[k] = '\0';

Will solve this issue.

[Updated on: Fri, 23 March 2012 23:03]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Xmlize Null Color
Next Topic: how to check specific end tag in a xml file?
Goto Forum:
  


Current Time: Sat May 11 09:06:09 CEST 2024

Total time taken to generate the page: 0.02098 seconds