99 little bugs…

Image

code bugs

Advertisements

BugAid for Visual Studio: Enhance your debugging experience

BugAid is an extension for Visual Studio that can help you whenever you debug C# code. Using our unique features you can debug faster than ever before and have more time for writing quality code!

P.S.: If you buy BugAid, I would appreciate it if you leave them a message that you got the news from this blog ๐Ÿ˜‰

[ link ]

White screen of Darn

Ever had a White screen of Darn (WSOD) in Visual Studio or an error like this: “exception of type system.componentmodel.design.exceptioncollection was thrown” ?

If the [Clean Solution] and [Rebuild Solution] didn’t work.
Here is how to find the culprit:

  1. Open Visual Studio 2010 and open/load your solution containing the problem
  2. Open a second Visual Studio 2010 instance

In the second VS2010 instance do the following things:

  1. Go to [Tools] > [Attach to Process…]
  2. Select devenv.exe with which contains the solution with the problem from the Available Processes and click OK
  3. Next go to [Debug] > [Exceptions…]
  4. Check [Common Language Runtime Exceptions] in the [Thrown] column

Now go to your first Visual Studio 2010ย instance with your project and open the designer file which causes you the PITA (Pain In The Ass).

Your second VS2010 instance should break on the exception, showing you where it goes wrong in your code.

Enjoy ๐Ÿ˜‰

IE9 and YouTube just a bug?

I just found out that I can’t insert the ampersand (&) character in the YouTube search box by typing it (copy-paste works).
It works on every other website that I have tested but not on YouTube.

Screenshot from FireFox:

Did I just found a little bug in IE9 RC or is it Google who is playing a dirty browser wars game?

Other people with IE9 RC can all reproduce this. I could not find any bug report of this on connect.microsoft.com.
When using compatibility mode in IE9 it works but when I use the default mode, it doesn’t work.

RAW (probably useless) HeaderData from Fiddler:

IE9 (normal modus):

GET http://www.youtube.com/ HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-GB
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: http://www.youtube.com

IE9 (compatibility modus):

GET http://www.youtube.com/ HTTP/1.1
Accept: application/x-ms-application, image/jpeg, application/xaml+xml, image/gif, image/pjpeg, application/x-ms-xbap, application/x-shockwave-flash, */*
Accept-Language: en-GB
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; InfoPath.3; Zune 4.7)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: http://www.youtube.com

FireFox 3.6.13:

GET http://www.youtube.com/ HTTP/1.1
Host: http://www.youtube.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; nl; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive

I assume that it is just a bug in IE9 RC but these days we need to investigate everything, don’t we?!
It could be a trick to damage the IE image by irritating IE users. But we all know that Google is ‘not’ Evil, don’t we? ๐Ÿ™„

Bug or not? That’s the question.

Update: still doesn’t work in the RTW version.

I Love Errors #7

Open Source: it keeps on failing.

  • Konquerer error when I did a middle-mouse-click.
  • KolorPaint crash for no reason
  • Even Moonlight does not work with Fedora
  • Konquerer has a long way to go with rendering websites..

I Love Errors #4

My current mobile phone is a Nokia 3500 classic.

When I was in Germany a while ago I found 2 bugs in the game Sudoku. Today I was checking some data on my hard-disk and I came across some footage from when I encountered the bugs. It’s maybe a few months old but the bugs are still there :P.

It’s the Sudoku game that is originally installed on the mobile phone.

If you want the details:

———-
Name:

Sudoku2.swf
Size:

54.0 kB
Created:

01/01/2007 12:00
Format:

SWF
Resolution:

00 x 00
Copyright:

Protected
———-

Bug 1:

The focus of an element can be moved to it’s neighbors.

You can reproduce it easily. Just click your left or right button very fast, just to switch from field to field. If you click for example your left button several times as fast as you can push, you will see that the focus is moving pixel by pixel. Finally if you press some more and faster you can set the focus on (for example) the grid element X2Y2 while the actual input is still on element X1Y2.

Bug 2:

The game freezes and keeps flashing the winning smiley and some other things.

I got this when I did the first bug (the focus was moved to the next grid instead on the original grid) and then I completed the Sudoku correctly. The first thing I saw was the ‘winning-smiley’ but then it kept flashing random stuff. So that was not so normal :P. Pressing the OK button didn’t work (neither the red-icon-phone-button). The only thing that worked was pressing the button on top of the mobile phone for a few seconds so that the mobile phone was turned off.

I didn’t manage to reproduce this bug, I’m sorry ๐Ÿ˜ฆ

…but still I was smart enough to capture a little movie from from this game going nuts!

Why do I always find such useless but cool things?! ๐Ÿ˜€