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. That really makes a difference

That really makes a difference

Scheduled Pinned Locked Moved The Weird and The Wonderful
csharprubydotnetannouncement
3 Posts 3 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.
  • M Offline
    M Offline
    mav northwind
    wrote on last edited by
    #1

    Just found this gem in the .NET BCL documentation on Process.WaitForExit(Int32): In the .NET Framework version 3.5 and earlier versions, if milliseconds was -1, the WaitForExit(Int32) overload waited for MaxValue milliseconds (approximately 24 days), not indefinitely.

    Regards, mav -- Black holes are the places where God divided by 0...

    G A 2 Replies Last reply
    0
    • M mav northwind

      Just found this gem in the .NET BCL documentation on Process.WaitForExit(Int32): In the .NET Framework version 3.5 and earlier versions, if milliseconds was -1, the WaitForExit(Int32) overload waited for MaxValue milliseconds (approximately 24 days), not indefinitely.

      Regards, mav -- Black holes are the places where God divided by 0...

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      I think you will find that 24 days is the maximum number of milliseconds a int32 wil hold. How do I know this? Well I wrote a millisecond counter with an int32 and wondered why every 20 or so days the program which was running on someone else's machine crashed. I never hit the error as I switched my machine off every night and was only away on holiday for less than 20 days when the software was running without a nightly shutdown. [edit - I missed the first line...]

      “That which can be asserted without evidence, can be dismissed without evidence.”

      ― Christopher Hitchens

      1 Reply Last reply
      0
      • M mav northwind

        Just found this gem in the .NET BCL documentation on Process.WaitForExit(Int32): In the .NET Framework version 3.5 and earlier versions, if milliseconds was -1, the WaitForExit(Int32) overload waited for MaxValue milliseconds (approximately 24 days), not indefinitely.

        Regards, mav -- Black holes are the places where God divided by 0...

        A Offline
        A Offline
        Athari
        wrote on last edited by
        #3

        The difference between eternity and 24 days matters actually. Windows 9x did crash after 49.7 days. They used unsigned int back then...

        “Today is the first day of the rest of your life.”

        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