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++ Library : Other (not classified elsewhere) » LOG_DBG does not work correctly [BUG]
LOG_DBG does not work correctly [BUG] [message #12053] Tue, 09 October 2007 18:59 Go to next message
benoitc is currently offline  benoitc
Messages: 17
Registered: July 2007
Location: Nice (France)
Promising Member
Hi,

The output generated is polluted by previous messages.
[5596] plot = [51, 17] - [765, 206] : (714, 189) 
[5596] Device #0 selected[765, 206] : (714, 189)  
[5596] blahblahblah17] - [765, 206] : (714, 189) 


The OutputDebugString expect a null terminated string as input, so we should add a zero at the end of the string in the LogStream::Flush() function to avoid that behaviour.

if(options & LOG_DBG) {
	*p=0;
	::OutputDebugString((LPCSTR)buffer);
}



Regards,
Benoit

Version: 710-dev1, WinXP
Re: LOG_DBG does not work correctly [BUG] [message #12106 is a reply to message #12053] Thu, 11 October 2007 05:36 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, applied.

Mirek
Previous Topic: How to determine if a key is down or up? (Aside from system keys)
Next Topic: FileMapping::Create is broken on Windows [BUG]
Goto Forum:
  


Current Time: Fri Mar 29 10:25:19 CET 2024

Total time taken to generate the page: 0.01138 seconds