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 » LocalProcess trivia bug in Write() function causing incorrect error strings
LocalProcess trivia bug in Write() function causing incorrect error strings [message #44191] Tue, 20 January 2015 23:00 Go to previous message
hans is currently offline  hans
Messages: 44
Registered: March 2006
Location: Germany
Member
Line 518 ff:
		for(int wn = 0; ret && wn < s.GetLength(); wn += n) {
			ret = WriteFile(hInputWrite, ~s + wn, s.GetLength(), &n, NULL);
			String ho = wreso;
			String he = wrese;
			wreso = wrese = Null;
			Read2(wreso, wrese);
			wreso = ho + wreso;
			wrese = ho + wrese;
		}

obviously last line should be wrese = he + wrese;

Same on line 538.

And I even don't understand why it was coded this way, it seems dangerous to give member variables (wreso, wrese) as parameters to the member function.
But perhaps there is a good reason for Razz

[Updated on: Tue, 20 January 2015 23:02]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: Ideographic Character Handling
Next Topic: Using standard C++ in U++ application
Goto Forum:
  


Current Time: Sat Apr 27 20:32:54 CEST 2024

Total time taken to generate the page: 0.07816 seconds