Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Debugging pain

Debugging pain

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharpasp-netcomperformancehelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dave Kreskowiak
    wrote on last edited by
    #1

    An intermittant problem that shows up only when you're writing code at home, not at work. Crashes hard at home with all kinds of OutOfMemory failures, but the machine isn't out of memory or resources at all. Not even close. After 5 hours of fruitless debugging, the painful part is where you facepalm yourself hard because you just realized that in a Parallel.ForEach your using around an I/O bound problem, you forgot to cap the number of threads it can create! The process bombed out at about 600 threads. :doh: Whoops!

    A guide to posting questions on CodeProject

    Click this: Asking questions is a skill. Seriously, do it.
    Dave Kreskowiak

    Z N M 3 Replies Last reply
    0
    • D Dave Kreskowiak

      An intermittant problem that shows up only when you're writing code at home, not at work. Crashes hard at home with all kinds of OutOfMemory failures, but the machine isn't out of memory or resources at all. Not even close. After 5 hours of fruitless debugging, the painful part is where you facepalm yourself hard because you just realized that in a Parallel.ForEach your using around an I/O bound problem, you forgot to cap the number of threads it can create! The process bombed out at about 600 threads. :doh: Whoops!

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      Z Offline
      Z Offline
      ZurdoDev
      wrote on last edited by
      #2

      Dave Kreskowiak wrote:

      Whoops!

      Every great developer has said that before. It's the terrible developers that never say that either because they don't know when they screw up or they won't admit it. :-D

      There are only 10 types of people in the world, those who understand binary and those who don't.

      1 Reply Last reply
      0
      • D Dave Kreskowiak

        An intermittant problem that shows up only when you're writing code at home, not at work. Crashes hard at home with all kinds of OutOfMemory failures, but the machine isn't out of memory or resources at all. Not even close. After 5 hours of fruitless debugging, the painful part is where you facepalm yourself hard because you just realized that in a Parallel.ForEach your using around an I/O bound problem, you forgot to cap the number of threads it can create! The process bombed out at about 600 threads. :doh: Whoops!

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        N Offline
        N Offline
        Nguyen H H Dang
        wrote on last edited by
        #3

        Whoops :doh:

        In code we trust !

        1 Reply Last reply
        0
        • D Dave Kreskowiak

          An intermittant problem that shows up only when you're writing code at home, not at work. Crashes hard at home with all kinds of OutOfMemory failures, but the machine isn't out of memory or resources at all. Not even close. After 5 hours of fruitless debugging, the painful part is where you facepalm yourself hard because you just realized that in a Parallel.ForEach your using around an I/O bound problem, you forgot to cap the number of threads it can create! The process bombed out at about 600 threads. :doh: Whoops!

          A guide to posting questions on CodeProject

          Click this: Asking questions is a skill. Seriously, do it.
          Dave Kreskowiak

          M Offline
          M Offline
          MarkTJohnson
          wrote on last edited by
          #4

          We have an application that automates the running of other applications we have that take data feeds from clients and process them. Automation uses a command line to kick of the different processing programs. All of the sudden the automation starts logging an error even though the processing completes successfully. I finally track down the location of the line that is recording the log message. The code in automation scans the log file of the processing program for the string "error" and reports if it finds it. I look through the log files of the processing programs and everything looks normal, no errors being reported. After several more reports of this problem I am looking at the log file again and I finally find the cause of the problem. The file services people who manage the automation process wanted more detailed logging, to include recording the command line parameters being used for each different run of the processing application. One of those command line parameters is used to turn on and off message/error logging. The message sent to the log file for the logging switch said, "Command Line Parameter to log errors" WHOOPS! :-O Yes, I added that code.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups