   What bug made you feel the stupidest?
  I named a variable ''new''.Nuff said.    Create.  
  I put a SEEK_SET where a SEEK_CUR should have been in my package decompression code a couple days ago. It took me a couple hours to find that error. I''ve done *Something++ instead of (*Something)++ a couple times recently as well .    [Resist Windows XP''s Invasive Production Activation Technology!];  With no doubt. The bug that makes me feel the most dumb is seeking a bug that doesn''t exist. Like when the program doesn''t do what expected, but you mistaken in what was expected, and search for 2 hours what the problem is.I''m not sure if someone can beat that Y.;  Not, this thread again...no I can''t beat that either.Mine is putting a slash infront of somthing I was loading for direct X, took me ages to find that one.    Escape - OK, it''s not online, but I am doing my bestResist nes8bit - Bow Down to Linux Communism  ;  I kept getting the wrong icon in my tray bar app. After hours of frustration, it turned out that the Instance I was using to refer to the appropriate icon was being initialised AFTER I was creating the main dialog.The Instance was only set right before the progam closed ...    "NPCs will be inherited from the basic Entity class. They will be fully independent, and carry out their own lives oblivious to the world around them ... that is, until you set them on fire ..." -- Merrick"It is far easier for a camel to pass through the eye of a needle if it first passes through a blender" -- Damocles  ;  My program crashed upon quitting.  Getting the disassembly was useless because it pointed to the data portion.After a month of scratching my head (I''d work on other things) I noticed I had two error logging statements at the end so I made them into one statement.WriteError("cleaned up\n");WriteError("All Done\n");becameWriteError("cleaned up\nAll Done\n");and the bug disappeared.I spent forever looking for a bug caused by a bug tracking routine.  Damn irony!  ;  I was sending an angle to sinf/cosf in degrees, not radians....That bug pi**ed me off so much.    ------------------------------Trent (ShiningKnight)E-mail meShining Darkness- A division of Chromesphere Studios;  common, no one has ever done this?   for( int i = 0; i < 1000; i++ );    // some code here that never gets executed  or...   if( x = NULL )  heheeThat last one is especially devious... because it will ALWAYS fail the test, yet after the test is performed, x will be NULL ;  I have never felt stupid about a bug. I know that everyone misses obvious bugs sometimes, so why should I feel stupid when it happens to me?  ;Not realy a bug but ........After making some drastic changes to my game , I double clicked on the icon . The changes I had made made no difference at all. I was like wtf . So I go to my code and start analysing a line at a time , trying to figure out why it wasnt working. After 10mins I figured out I didnt build the application after making the changes . Needless to say , I went to bed. 