exception

Oh that recursion…

Some time ago I lost two days for finding trivial bug. It was done completely unconsciously. Anyway, as most of other bugs. Application started to behave quite strange – after launching, it crashed immediately. Probably you will ask yourself what it is unusual. I have started standard procedure – run application with connected a debugger. But debugger was useless. Application crashed without any notification disconnecting the debugger. I have not got any single clue that will help me to solve this riddle. […]

By |2013-06-10T13:50:46+02:003 December 2012 |C#, Windows Phone|2 Comments

Safe way of Windows Phone Tasks handling

Have you ever wondered how you should use Windows Phone 7 Tasks correctly? When you look through the examples on MSDN, in most cases you will find following structure: Task task = new Task(); try { task.PropertyA = “A”; task.PropertyB = “B”; task.PropertyC = “C”; task.Show(); } catch (System.InvalidOperationException ex) { MessageBox.Show(“An error occurred.”); } […]

By |2012-07-22T20:11:11+02:0022 July 2012 |Windows Phone|0 Comments

Debugging Visual Studio

Today I will try to describe the technique used rarely to find bugs. It involves the use of second instance Visual Studio to find errors in the first. Looking at the last sentence, you can begin to think about how to look for errors in Visual Studio can help you find bugs in our program. It should be realized, that really Visual Studio incorporates our code. And our goal is to trace the activities of this code. […]

By |2012-06-15T18:21:54+02:002 November 2011 |C#, Visual Studio|2 Comments