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. Error Messages 101

Error Messages 101

Scheduled Pinned Locked Moved The Weird and The Wonderful
helpcsharpvisual-studiolinux
13 Posts 6 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.
  • P PIEBALDconsult

    I've been doing some work with accessing a Queue on multiple threads (to see just how non-thread-safe they are) and had one report a count of -10. :omg: But it worked just fine.

    L Offline
    L Offline
    LloydA111
    wrote on last edited by
    #3

    PIEBALDconsult wrote:

    and had one report a count of -10. :OMG: But it worked just fine.

    Ouch. That's probably even worse than it simply failing, because you could have production code giving bad results without an exception. X|

           .-.
          |o,o|
       ,| \_\\=/\_      .-""-.
       ||/\_/\_\\\_\\    /\[\] \_ \_\\
       |\_/|(\_)|\\\\  \_|\_o\_LII|\_
          \\.\_./// / | ==== | \\
          |\\\_/|"\` |\_| ==== |\_|
          |\_|\_|    ||" ||  ||
          |-|-|    ||LI  o ||
          |\_|\_|    ||'----'||
         /\_/ \\\_\\  /\_\_|    |\_\_\\
    
    1 Reply Last reply
    0
    • P PIEBALDconsult

      I've been doing some work with accessing a Queue on multiple threads (to see just how non-thread-safe they are) and had one report a count of -10. :omg: But it worked just fine.

      B Offline
      B Offline
      Brisingr Aerowing
      wrote on last edited by
      #4

      WTF? That is rather strange. I wonder what else the framework has in store for this forum?

      Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

      1 Reply Last reply
      0
      • B Brisingr Aerowing

        The following is not a useful error message:

        Quote from upgrade log:

        src\Libraries\WindowsAPICodePack\Shell\Shell.csproj: Error on line 551291232. Expected 'ENCODING' but found 'utf-8'.

        The file is 296 lines, not 551291232 lines. :doh: Visual Studio 2013 Premium. That error was nowhere near the issue (an unmatched tag on line 15)

        Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

        S Offline
        S Offline
        Sentenryu
        wrote on last edited by
        #5

        The day you find an error message that accurately describes the error, then you can be surprised.

        B A 2 Replies Last reply
        0
        • P PIEBALDconsult

          I've been doing some work with accessing a Queue on multiple threads (to see just how non-thread-safe they are) and had one report a count of -10. :omg: But it worked just fine.

          S Offline
          S Offline
          Sentenryu
          wrote on last edited by
          #6

          That's why they made System.Collections.Concurrent.ConcurrentQueue[^] and the other concurrent collections. Sadly, there's no ConcurrentList.

          P 1 Reply Last reply
          0
          • S Sentenryu

            The day you find an error message that accurately describes the error, then you can be surprised.

            B Offline
            B Offline
            Brisingr Aerowing
            wrote on last edited by
            #7

            :thumbsup:

            Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

            1 Reply Last reply
            0
            • S Sentenryu

              That's why they made System.Collections.Concurrent.ConcurrentQueue[^] and the other concurrent collections. Sadly, there's no ConcurrentList.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #8

              And sadly the interface doesn't match the regular queue's.

              1 Reply Last reply
              0
              • S Sentenryu

                The day you find an error message that accurately describes the error, then you can be surprised.

                A Offline
                A Offline
                Albert Holguin
                wrote on last edited by
                #9

                Sad but true... :laugh:

                1 Reply Last reply
                0
                • B Brisingr Aerowing

                  The following is not a useful error message:

                  Quote from upgrade log:

                  src\Libraries\WindowsAPICodePack\Shell\Shell.csproj: Error on line 551291232. Expected 'ENCODING' but found 'utf-8'.

                  The file is 296 lines, not 551291232 lines. :doh: Visual Studio 2013 Premium. That error was nowhere near the issue (an unmatched tag on line 15)

                  Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                  A Offline
                  A Offline
                  Albert Holguin
                  wrote on last edited by
                  #10

                  Brisingr Aerowing wrote:

                  Visual Studio 2013 Premium.

                  The extra lines come from being a Premium version. ;P

                  B 1 Reply Last reply
                  0
                  • A Albert Holguin

                    Brisingr Aerowing wrote:

                    Visual Studio 2013 Premium.

                    The extra lines come from being a Premium version. ;P

                    B Offline
                    B Offline
                    Brisingr Aerowing
                    wrote on last edited by
                    #11

                    :)

                    Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                    1 Reply Last reply
                    0
                    • B Brisingr Aerowing

                      The following is not a useful error message:

                      Quote from upgrade log:

                      src\Libraries\WindowsAPICodePack\Shell\Shell.csproj: Error on line 551291232. Expected 'ENCODING' but found 'utf-8'.

                      The file is 296 lines, not 551291232 lines. :doh: Visual Studio 2013 Premium. That error was nowhere near the issue (an unmatched tag on line 15)

                      Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                      R Offline
                      R Offline
                      Rob Grainger
                      wrote on last edited by
                      #12

                      "Error on line 551291232" Now would be a good time to argue for payment by lines of code. Even at a penny a line, you'd be doing well.

                      "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                      B 1 Reply Last reply
                      0
                      • R Rob Grainger

                        "Error on line 551291232" Now would be a good time to argue for payment by lines of code. Even at a penny a line, you'd be doing well.

                        "If you don't fail at least 90 percent of the time, you're not aiming high enough." Alan Kay.

                        B Offline
                        B Offline
                        Brisingr Aerowing
                        wrote on last edited by
                        #13

                        It was a C# project file that I had modified manually (changed framework version, removed file upgrade-related tags, fixed references) but I had accidentally removed a required end tag on line 15, which caused the error.

                        Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor

                        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