NT service / printf question

  • Thread starter Thread starter Scott McFadden
  • Start date Start date
S

Scott McFadden

Is there much overhead leaving in printf calls for a release build of my NT
service (VC8)? This app runs as a NT service or console app so it's nice
to have the console ouput when troublshooting the application. The console
only has a fixed buffer size so I guess that running as a service the same
would apply.
 
Is there much overhead leaving in printf calls for a release build of my
NT service (VC8)? This app runs as a NT service or console app so it's
nice to have the console ouput when troublshooting the application. The
console only has a fixed buffer size so I guess that running as a service
the same would apply.

I have done that without problems, though you could make a wrapper for
printf that only prints text to the output if you are running from command
line.
that way you don't have to worry at all.

--

Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren
(e-mail address removed)
 
Back
Top