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 |
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
|
|
|
|
Goto Forum:
Current Time: Wed Jun 05 06:43:22 CEST 2024
Total time taken to generate the page: 0.03508 seconds
|