U++ framework
Do not panic. Ask here before giving up.

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 previous 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
 
Read Message
Read Message
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: Mon Apr 27 18:53:44 GMT+2 2026

Total time taken to generate the page: 0.00561 seconds