Error Messages 101
-
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.
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 || |\_|\_| ||'----'|| /\_/ \\\_\\ /\_\_| |\_\_\\
-
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.
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
-
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
-
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.
-
The day you find an error message that accurately describes the error, then you can be surprised.
:thumbsup:
Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor
-
That's why they made System.Collections.Concurrent.ConcurrentQueue[^] and the other concurrent collections. Sadly, there's no ConcurrentList.
And sadly the interface doesn't match the regular queue's.
-
The day you find an error message that accurately describes the error, then you can be surprised.
Sad but true... :laugh:
-
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
Brisingr Aerowing wrote:
Visual Studio 2013 Premium.
The extra lines come from being a Premium version. ;P
-
Brisingr Aerowing wrote:
Visual Studio 2013 Premium.
The extra lines come from being a Premium version. ;P
:)
Getting information off the Internet is like taking a drink from a fire hydrant. - Mitchell Kapor
-
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
"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.
-
"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.
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