Click here to Skip to main content

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberJohn Atten10 Oct '12 - 2:43 
Funny!
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberkdmote10 Oct '12 - 6:39 
I encountered one once that amused me so much I taped a screenshot of it on my office door. It consisted of nothing but an exclamation point icon and the two words:
 
"Catastrophic Failure"
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberRafagaX10 Oct '12 - 7:47 
Well, it can't be clearer, Everything is wrong! time to run like a headless chicken! Laugh | :laugh:
CEO at:
- Rafaga Systems
- Para Facturas
- Modern Components
for the moment...

GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)membergreldak10 Oct '12 - 22:00 
My favourite from Microsoft has to be
 
"There has been an error"
 
I've also seen reports of one thats just a blank dialog box without even an OK button to make it go away!
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberAlexMaximovic10 Oct '12 - 20:45 
I once got an error message from a 3rd party component:
"Don't know what to do"
Seriously?!
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberMember 434753410 Oct '12 - 22:50 
This is easy. I am staring at (VB.NET):
 
A call to PInvoke function 'exam123-DB!exam123.Exam123F::Sleep' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberRichard Deeming15 Oct '12 - 3:57 
That's a perfectly reasonable error message:
  • It's aimed at developers, so it can assume you'll know, or be able to find out, what managed, unmanaged and PInvoke mean;
  • It tells you what's wrong; (your PInvoke method signature)
  • It tells you where the problem is; (the import of exam123-DB!exam123.Exam123F::Sleep)
  • It tells you how to fix it; (correct the signature)
It can't do much more for you, since unmanaged methods don't have enough metadata for the compiler to tell you what the correct signature should be.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberThornik11 Oct '12 - 1:27 
Biggest error I ever seen is "Your Windows is successfully installed". Yes, it was MY fault. Smile | :) )
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberStefan_Lang15 Oct '12 - 4:49 
Have you considered fixing yourself? Poke tongue | ;-P
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft)memberThornik16 Oct '12 - 3:20 
Tried many times - with OS/2, Linux, FreeBSD, QNX... hell knows how I hate ugly Windows but still have to use it. Now I'm developer, hooked on .NET;

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 23 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid