+ Post New Thread
Results 1 to 2 of 2
Coding Thread, BAD dotNet docs in Coding and Web Development; This is really a FFS! but makes more sense here. A MSDN dotNet 2 reference talks about a 5 second ...
  1. #1

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    114

    BAD dotNet docs

    This is really a FFS! but makes more sense here.

    A MSDN dotNet 2 reference talks about a 5 second interval and says "[X] will be lost", whereas the dotNet 3 version talks about a 6 second interval and says "[X] will be delayed". The difference between them will make or break any typical program using this bit of the APIs.

    The calls they are talking about live in the same DLL and that's exactly the same dotNet 2 DLL regardless of whether you have dotNet 2 or dotNet 3 installed (dotNet 3 essentially being dotNet 2 plus some new libraries).

    Maybe if 65535 people all hold hands and chant "It is a dotNet 3 DLL!" for long enough they'll move a few electrons and it it will work as documented in the dotNet3 description. Dunno..

    Then I found someone who actually tested their code and accidentally proved the dotNet 2 take on the matter, which means a lot of smug example code on blogs and the like is broken.[1]

    --

    And then you meet a incomprehensible MSDN description of some number you need to play with.. and all the code I found out there took it at face value.. that to derive Y from 32-bit number X you mask the top two bits.. when in fact X is definitely a 64-bit number and to get Y you mask the top 32 bits.

    [1] Reminds me of the 27 "expert" blogs and columns I found on getting started with 2K8 beta 3 Server Core with exactly the same, but absolutely broken netsh command line. I suppose they either stole or were handed the recipe by MS, despite clearly suggesting to us gullible readers that they had personally gone through and sweated over the process.

  2. #2

    Join Date
    Jan 2006
    Location
    Surburbia
    Posts
    2,178
    Thank Post
    74
    Thanked 307 Times in 243 Posts
    Rep Power
    114

    Re: BAD dotNet docs

    You can do this all day... on some collection MSDN says it's not immutable (=mutable=might change while you're trying to do things with it) so you should NOT iterate it with a for loop.

    The code examples below that advice iterate it with a for loop.

SHARE:
+ Post New Thread

Similar Threads

  1. My Docs, Class Shared & Shortcut generator
    By contink in forum Scripts
    Replies: 30
    Last Post: 7th May 2009, 12:22 AM
  2. Problems with My Docs Sync on laptop.
    By wadeeuk in forum How do you do....it?
    Replies: 6
    Last Post: 13th November 2007, 11:00 PM
  3. Replies: 6
    Last Post: 6th September 2007, 12:53 PM
  4. My Docs access problem
    By Ste_Harve in forum Windows
    Replies: 2
    Last Post: 30th August 2007, 12:32 PM
  5. Stopping word docs opening in IE7
    By mattx in forum Windows
    Replies: 4
    Last Post: 4th July 2007, 10:39 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •