Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SuperHebbe

    How to prevent big loops from showing 100% CPU

    Hi In my stats program I have a a lot of big loops to process some log files, and each time the CPU goes all the way up to 100% even I had set priority to the lowest (IDLE_PRIORITY_CLASS) I tried this code to prevent the CPU to go so high: UBYTE sleep_counter = 0; for (i = 0; i < size; i++)...
  2. SuperHebbe

    Freeing memory from console apps on exit

    Ahhh, thanks a lot guys :D SuperHebbe
  3. SuperHebbe

    Change priority of a console app

    Ahh good... It was just some guy that told me that it was difficult to change the priority the proper way.. But I have tested it on 6 different computers now, and it seems to work :)
  4. SuperHebbe

    Freeing memory from console apps on exit

    But the program never ends... Just when you quit it by pressing the X mark or ALT-F4..
  5. SuperHebbe

    Change priority of a console app

    Hi I'm using this code to change the priority of my prog. Is it safe to use? Seems to work :) struct hProcess *pr; pr = GetCurrentProcess (); SetPriorityClass (pr, BELOW_NORMAL_PRIORITY_CLASS); SuperHebbe www.superhebbe.com
  6. SuperHebbe

    Freeing memory from console apps on exit

    Hi This is my first post here :D I my to programming on Windows cause I'm used to Amiga (RIP) The question is: I have made a program that generates statistics files from hl2dm and the program is in a forever loop.. When I quit the console app, does it free the memory or do I have to call some...

Part and Inventory Search

Back
Top