Tag | Debugging Posts

Windows CE: C# Application to Format TFAT In Windows CE: Formatting TFAT I show how to format a disk with TFAT using C/C++ code. The customer that I wrote that for develops using C#, so I wrote a C# application to test the formatting code. To me, most formatting tools are just too difficult for the average user. In this case, the user will be someone working in the factory or field service. They just need to select a disk and request that it be formatted. The application dialog look like: It has ...
Over the past few months I had the great opportunity to tackle the challenge of learning both the iPhone and Android mobile platforms for the first time as a developer. I had used both previously as a consumer, so it was interesting to finally get a chance to jump in with both feet for a work project. I have been focused on .NET development in C# for the past 8 years, but originally cut my teeth on unmanaged C & C++ during the 90's, along with a smattering of Java development for college courses ...
In this Issue: Emiel Jongerius, Michael Washington, Kevin Dockx, Alex van Beek, and Alex Golesh. Sorry for being silent, but dealing with an imploding contract and training my replacement is sucking the energy out of me. Here is a Submittal only post... From SilverlightCream.com: Postponing actions Emiel Jongerius has a new post up on a utility class that can be used to limit the calls to internal synchronization methods of objects... think DeferRefresh. Dynamically Loading Silverlight Video Players ...
Thanks to all of you who attended my session at STL Day of Dotnet. Hopefully you found it useful. You may find a copy of my presentation here: http://www.slideshare.net/k... I hope to create some follow up blog entries on this topic but in the meantime, you may download the sample project here I have also included the script I used to build the demo. New Project - Silverlight Business Application AdventureWorksHR @ C:\Code Projects\DayOfDotNet2010\ Build and Run. ...
In this Issue: Anton Polimenov, Shawn Wildermuth, Gergely Orosz, Chris Koenig, Tim Heuer(-2-), Tim Greenfield, Nigel Sampson(-2-), Shawn Oster, and John Papa. Shoutouts: Telerik has announced The Telerik Eastern Canada User Group Tour is Coming... ... check out the cities and don't miss it! Erik Mork and company have my buddy Walt Ritscher on this week: Show 103: Windows Phone 7 Development Hardware with Walt Ritscher From SilverlightCream.com: WP7: Screen Considerations for Developers Anton Polimenov ...
We are working on a major project with Sl 4 and WCF. One of the things that really bugged us was the crazy not found error you would get with any call in the middle tier. We had to resort to wcf tracing and debugging to really dig in and find out something useful. Then my friend Ben Day happened to be talking with some Microsoft guys about WCF. Then pointed out a solution. Hit the link below to Ben’s blog and the summary plus a link to the original post: http://blog.benday.com/arch... ...
Many, maybe even most, Windows CE devices are single purpose devices that have an application that fills the entire screen. So of course setting the application to entirely fill the display is important. In this article we will explore setting an application to display full screen using C/C++. My plan is to create a simple application that fills the screen with white and displays two buttons, exit and explore. Those may be odd buttons for a kiosk application, but they will come in handy while working ...
I came across SharpSvn when trying to find a .NET API that I could use to do some tasks against Subversion. I was building a tool where I needed to pull a list of SQL files that have changed between revisions. Well, pretty much, the documentation is non-existent. In order to get a grasp of SharpSvn, I first had to realize that the API was not designed to be a quick-help utility. Instead, its API is very open, leaving it up to the consuming developer to create that "utility". First, I created an instance ...
I started training on SharePoint 2010 about 3 months ago and I decided that I needed to blog about the ease of developing Silverlight applications with Visual Studio 2010 for SharePoint 2010. In Visual Studio 2008 the methodology would be to: 1. Create a Silverlight application 2. Create the XAP file 3. Move the XAP file into a SharePoint document library or Layouts folder 4. Put a Silverlight Web part on a SharePoint page (not OOTB) a. Link the Silverlight web part to the XAP file 5. Debug the web ...
In this Issue: Michael Washington, Benjamin Gavin Braulio Diez, Jeff Wilcox, Silverlaw, Mike Taulty(-2-), Shawn Wildermuth, Kirupa Chinnathambi, Gergely Orosz, and John Papa. From SilverlightCream.com: Silverlight: Why I feel “Design Is The Most Important Thing” Michael Washington has a great post up on Design that says it much better than my normal comment: "No amount of pretty is going to make people wanna use a crappy app" :) Silverlight TreeView - Drag & Drop with MVVM Benjamin Gavin posted ...
I recently had to introduce a DTO pattern on a project. The application was split between a server side and a desktop side using http based WCF to handle the communication. The project had been working well passing NHibernate entities back and forth, but there was too much data being transferred. So we introduced the DTO pattern. I added a GetDto method to the base class for the Entities. I added a GetEntity to the base class for the DTOs. We created DTO objects for the entities that we wanted to ...
In the software development life cycle, testing and defect fixing take more time than actually code writing. In general, debugging is a process of finding out defects in the program and fixing them. Defect fixing comes after the debugging, or you can say they are co-related. When you have some defects in your code, first of all you need to identify the root cause of the defect, which is called the debugging. When you have the root cause, you can fix the defect to make the program behavior as expected. ...
This seminar provides an overview of several in-depth concepts that developers need to learn to bring their jQuery development to the next level. They review six things that you should know, such as: "What Is This?", "Am I Referencing the jQuery Object or a DOM Element?", "Understanding Selectors", "Combine and Minify Your Scripts", "Different Ways of Storing Data", and "The Dos and Don'ts of Events". Along the way, they share several helpful websites and tools to make your job as a jQuery developer ...
In this Issue: Timmy Kokke, Damon Payne, Kirupa Chinnathambi, Giorgetti Alessandro, Dinesh Sodani, David Anson, Kunal Chowdhury, haruhiro isowa, Max Paulousky, Rénald Nollet, and Rob Tiffany. Shoutouts: Cigdem Patlak interviews Daron Yondem Part 1: Istanbul Yazgelistir Summit – Daron Yondem on Silverlight activities in MEA, Silverlight 4 and Windows Phone 7 Series Cigdem Patlak interviews Daron Yondem Part 2: Istanbul Yazgelistir Summit – Daron Yondem on upcoming Silverlight releases, the Silverlight ...
Did you ever want a feature but the system got in your way? In my case I wanted to to get the last thrown exception outside of any catch block. Be warned that this is a deep dive into the guts of the Common Language Runtime. Language architects and Api designers should stop reading from here on. Yes I did break the rules of encapsulation and many other things. I am perfectly fine with a reputation to use Apis in not intended ways but otherwise it would have been impossible create a tracing library ...
In this Issue: Sl.ayer, Emiel Jongerius, Andrea Boschin, KunalChowdhury, Charles Petzold, Kathleen Dollard, Jag Reehal, Saschac, Versant, Karl Shifflett, and John Papa. Shoutouts: Michael S. Scherotter reported an update: Word to XAML Converter Updated for Word 2010, WPF4 and Silverlight 4 The Silverlight Team Blog announced Microsoft, NVIDIA and iStreamPlanet Stream NASCAR in 3D The Silverlight Team Blog also announced Silverlight and Wimbledon. Game, Set and Match SilverlightShow has announced ...
IntelliTrace is a new and very interesting feature of Windows Azure Tools SDK, June 2010 release. It, along with its other features, enables debugging of application in the cloud. This feature is available in Microsoft Visual Studio 2010 Ultimate only. IntelliTrace provides an enhanced picture of the application compared to the traditional debugging. Traditional Debuggers provides the current state of the application with very limited information of the events occurred in the past. While, IntelliTrace ...
I’ve been trying to wrap my head around the Grid in Silverlight/WPF today and decided that I’d share this with others. I made this diagram and the following xaml code snippet to remember how to position controls/etc in the grid. From looking at the image below, we have a 3x3 Grid that starts at 0. After you create a Grid, debugging is easier if you turn the ShowGridLines to true. Now its time to setup the RowDefinitions and ColumnDefinitions. We can create a button control now. You should pay special ...
I have moved this project from CodePlex to GitHub at https://github.com/danemorg... I have a posted a project on Codeplex at http://efrepository.codeple... It is a T4 template to give you a data layer that follows Repository and Unit of Work patterns that is also ready for Dependency Injection (DI). DI frameworks allow you to build code that is more testable and allows for a greater separation of concerns (SoC). This is not the only use for them, but it is a big one and what they are ...
While there are many programmers moving their infrastructures to platforms like .NET and away from VB6 and COM, there are still applications out there that are written in VB6 and possibly a plethora still using COM. And, it is likely that we’ll be seeing and supporting VB6 and COM-based applications for the foreseeable future. As a result, maybe you shouldn’t file away your VB6 and COM troubleshooting skills just yet. Even if you have a good strategy for preserving binary compatibility from version ...
Microsoft publishes way too many tools to check all of them out. One pretty cool debugging tool is Application Verifier which you can download here. The official docs mention that it is only meant for unmanaged code. But it does work in mixed mode applications as well so you can try to hunt down your managed heap corruption, double closed handles, … with this tool. When you start it the first time you select the executable you want to check and then enable from the right menu the checks you want ...
Background While the xpath function in a BizTalk orchestration is a very powerful feature I have often come across the situation where someone has hard coded an xpath expression in an orchestration. If you have read some of my previous posts about testing I've tried to get across the general theme like test-driven or test-assisted development approaches where the underlying principle is that your building up your solution of small well tested units that are put together and the resulting solution ...
Welcome Readers!, I am starting out a new series on ASP.NET MVC skill building which will be posted over the next couple of weeks. Let me know your thoughts on the content, which I have planned and a couple of them has been taken from ASP.NET MVC2 Cookbook. (NOTE: Only the heading has been taken, the content will be not :)). Do let me know what you would like to see, or any additional inputs or ideas to cover in this topics. The 30 steps are oultined below for quick reference. Will start filling ...
Here is the list of Zone ID’s for the Blank WebPart Page (BlankWebPartPage.aspx") that is part of the Publishing Portal with MOSS 2007: TitleBar Header TopLeftRow TopRightRow CenterLeftColumn CenterColumn CenterRightColumn Footer RightColumn I was in need of these and wasn’t able to find them with a simple search on Google so I wanted to share them with you. To get a list of WebPartZone objects for a page that a webpart lives on can be done with the following code: foreach (WebPartZone zone in this.WebPartManager.Zones) ...
Yey – we have a public release of the Windows Azure Tools which fully supports Visual Studio 2010 RTM and the .NET 4 Framework (When did that go public!?) And the biggy I have been waiting for – IntelliTrace support to debug your cloud deployed services (Requires VS2010 Ultimate) Download today http://bit.ly/azuretoolsjune New for version 1.2: Visual Studio 2010 RTM Support: Full support for Visual Studio 2010 RTM. .NET 4 support: Choose to build services targeting either the .NET 3.5 or .NET 4 framework. ...
This walkthrough describes how to convert a Visual Studio .NET 2002 or Visual Studio .NET 2003 Web project to a Visual Studio 2008 Web application project. The Visual Studio 2008 Web application project model is like the Visual Studio 2005 Web application project model. Therefore, the conversion processes are similar. For more information about Web application projects, see ASP.NET Web Application Projects. You can also convert from a Visual Studio .NET Web project to a Visual Studio 2008 Web site ...
You can reach this page anytime at http://tools.michaelcrump.net Thanks to everyone that has contributed so far, we are getting several thousands hits from all sorts of developers a day. Recent Contributors include: Deependra Solanky, Grant, Klaus, James, BlueCollarCritic and Bob Koehn Tweet this list! Add a link to my site! Add me to twitter! This is a list of the tools/utilities that I use to do my job/hobby. I wanted this page to load fast and contain information that only you care about. If I ...
I do quite a bit of debugging .NET applications but from time to time I see things that are impossible (at a first look). I may ask you dear reader what your mental exception handling model is. Exception handling is easy after all right? Lets suppose the following code: private void F1(object sender, EventArgs e) { try { F2(); } catch (Exception ex) { throw new Exception("even worse Exception"); } } private void F2() { try { F3(); } finally { throw new Exception("other exception"); } } private void ...
Do you want to develop an add-in targeting multiple versions of Office? And you have basic questions like “Is it possible to do? ” and “How to do it?” ? Then you came to the right place. Few months back, I got a requirement to developed add-ins for Outlook 2003 and Outlook 2007. The functionality for both the versions is same. A doubt stroked… when the functionality is same, why would I develop two add-ins separately? Why don’t I make a single build for both the versions of Office? Then I started ...
I wanted to blog about this because it was an annoyance to me and I couldn't figure out why for quite some time. Have you ever tried debugging one web application in your solution but when you do, all other web sites in your solution build and then start up their respective Visual Studio Development Server? It's not a major problem, but it adds time to waiting for what you are actually trying to debug to start up. After digging through Visual Studio 2010 settings, I finally found the option to turn ...
Yesterday, Microsoft held its flagship launch event for Office 2010 in Manhattan. Today, the Redmond software company is holding a local launch event for Visual Studio (VS) 2010, in Brooklyn. How come information workers get the 212 treatment and developers are relegated to 718? Well, here’s the thing: the Brooklyn Marriott is actually a great place for an event, but you need some intimate knowledge of New York City to know that. NBC’s Studio 8H, where the Office launch was held yesterday (and from ...
I was working through some scenarios recently with Azure and Silverlight. I immediately decided a quick walk through for setting up a Silverlight Application running in an ASP.NET MVC 2 Application would be a cool project. This walk through I have Visual Studio 2010, Silverlight 4, and the Azure SDK all installed. If you need to download any of those go get em? now. Launch Visual Studio 2010 and start a new project. Click on the section for cloud templates as shown below. After you name the project, ...
My two latest books are out! Professional ASP.NET 4 in C# and VB Professional C# 4 and .NET 4 From the back covers: Take your web development to the next level using ASP.NET 4 ASP.NET is about making you as productive as possible when building fast and secure web applications. Each release of ASP.NET gets better and removes a lot of the tedious code that you previously needed to put in place, making common ASP.NET tasks easier. With this book, an unparalleled team of authors walks you through the ...
Shervin Shakibi, Microsoft Regional Director, ASP.Net MVP and Microsoft Certified Trainer will be our speaker at our West Palm Beach .Net User Group May meeting, Shervin founded the FlaDotNet Users Group Network to which our West Palm Beach .Net User Group belongs. Shervin will be talking to us about the new features of Silverlight 4.0. I am personally looking forward to attending this event as I have always found Shervin's talks fun and a great learning experience. At the end of our meeting, we ...
The "Quick Watch" feature of Visual Studio is an awesome tool when debugging your stuff... I use it all the time and quite often I end up exploring hashtables or lists of all sorts... One thing I hate is when I have to explore Collections... Good god did I lose time trying to find the inner member that contains my stuff when exploring collections... Most collections have the inside member that you can search for and find and explore to see the list of things you wanted to look at. Something in the ...
After installing VS 2008 on a new PC I noticed that the Autos and Locals windows did not show up when debugging. So I went to the logical place to find them View/Other Windows. No luck they were not there. I use VS every day but like a lot of folks I only need to install it every few years, usually with a new PC. So I forgot where they were. Finding them is easy, just start debugging a project and go to Debug/Windows. The Autos and Locals windows along with the others will be there. And I will probably ...
In this Issue: Viktor Larsson, Mike Snow(-2-), Jeff Brand, Marlon Grech(-2-, -3-), Jonathan van de Veen, Phil Middlemiss. Shoutout: Justin Angel wants everyone to know he is Joining the Vertigo Team!... congratulations, Justin! From SilverlightCream.com: Learning Silverlight – Advanced Color Animations Viktor Larsson is demonstrating small pieces of Silverlight he's picked upon in the course of his work project. This first one is on ColorAnimations using KeyFrames Silverlight Tip of the Day #4 – ...
In real life and OO programming we’re often faced with using adapters, DVI to VGA, 1/4” to 1/8” audio connections, 110V to 220V, wrapping an incompatible interface with a new one, and so on. Where the adapter pattern is generally considered for interfaces and classes a similar technique can be applied to method signatures. To be fair, this adaptation is generally used to reduce the number of parameters but I’m sure there are other clever possibilities to be had. As Jan questioned in the last post, ...
In this Issue: Miroslav Miroslavov, David Anson, Mike Snow, Jason Alderman, Denis Gladkikh, John Papa, Adam Kinney, and CrocusGirl. Shoutout: Mike Snow is moving his blog to Silverlight Tips of The Day... his first is a repeat of number 110 of the last list, but you'll want to bookmark the page. Falling in the 'too cool not to mention' category... Pete Brown posted another MIX10 interview: New Channel 9 Video: Josh Blake on NaturalShow Multi-touch in WPF Adam Kinney announced that the Upgrade to ...
Getting my geek on… I have decided to call the products VS.10 (Visual Studio 2010), TP.10 (Test Professional 2010), and TFS.10 (Team Foundation Server 2010) Thanks Neno Loje. What's new in Visual Studio & Team Foundation Server 2010? Focusing on Visual Studio Team System (VSTS) ALM-related parts: Visual Studio Ultimate 2010 NEW: IntelliTrace® (aka the historical debugger) NEW: Architecture Tools New Project Type: Modeling Project UML Diagrams UML Use Case Diagram UML Class Diagram UML Sequence ...
[Source: http://geekswithblogs.net/E... Overview Ignoring the fashion, I still make a lot of use of DALs – typically when inheriting a codebase with an established database schema which is full of tried and trusted stored procedures. In the DAL a collection of base classes have all the scaffolding, so the usual pattern is to create a wrapper class for each stored procedure, giving typesafe access to parameter values and output. DAL calls then looks like instantiate wrapper-populate parameters-execute ...
A few days back, I got a chance to speak at the Western Kentucky .NET User Group meeting in Murray, Kentucky. The opportunity came up because the original speaker, Jeff Blankenburg, had another obligation and was thus unable to come to this meeting. I volunteered to deliver his presentation, which is an overview of MIX10 conference. It was a great experience for me; got to drive around and do a little bit of sight-seeing – can’t say I’ve ever been to Kentucky before, so first trip ever there. I got ...
I am working on a program that uploads BLOB from DB to a Document Management System. I have a WCF service to interact with the DMS. I have a multi-threaded client program that uploads the BLOBs to DMS and every thread used to create and dispose a proxy instance for every record to update. When I have a large no of records to convert, I found that the tool’s memory foot print keeps increasing. After a little debugging I found that the WCF proxies are the culprits for excessive memory usage. I changed ...
Alex (http://simpleisbest.co.uk/) does a very good job in covering the new features of .NET 4.0 and Visual Studio 2010. His focus is on the developers that have experience in development using previous versions of Visual Studio, more specifically Visual Studio 2008. The following are my views towards his book. 1. Scope / Coverage Even as the book is labeled as introduction, it is covers a broad spectrum of technologies, features and references that are focused into helping a developer quickly decide ...

If you’re in Calgary, come join us on April 28th, 2010.  Habib Heydarian (Principal Program Manager Lead, Microsoft) will be presenting the new debugging features in Visual Studio 2010 including IntelliTrace, multi-tier performance analysis, importing/exporting breakpoints and many other features.

Register at www.dotnetcalgary.com.

Microsoft TechEd 2010 - Day 3 @ Bangalore Sorry for my delayed post on day 3 because I had to travel from Blore to Chennai So I couldnt write for the past two days. On day 3 as usual we had lot of simultaneous tracks on various sessions. This day I choose the Your Data, Our Platform Track. It had sessions on the following 5 topics : Developing Data-tier Applications in Visual Studio 2010 - by Sanjay Nagamangalam SQL Server Query Optimization, Execution and Debugging Query Performance - by Vinod Kumar ...
IntelliTrace is a new feature in Visual Studio 2010 Ultimate Edition. I see this valuable tool as a “Program Execution Recorder” that captures information about events and calls taking place as soon as we hit the VS2010 play (Start Debugging) button or the F5 key. Many online resources already discuss IntelliTrace and the benefit it brings to both developers and testers alike so I see no value of just repeating this information. In this brief blog entry, I would like to share with you how I will ...
Dreaded SQLs We used to think that a SQL statement without a where clause is only dangerous right since running that on a server TSQL is just going to impact the entire table like waving the magic wand. For that reason we should cultivate the habit first to write the statement as select and then to modify the select portion as update. Within the T-SQL Window, I would normally prefer the following first: select * from employee where empid in (4,5) and then once I am satisfied with the results, I would ...
Just found a good (looks like) tool for jQuery coding and debugging from the appinn.com (Chinese) named jQueryPad by Paul Stovell. With it we don’t need to switch between the visual studio and the browser when coding and debugging. There’s only one main screen where we can type the HTML and jQuery code and just press F5 to see the result in the bottom frame. .NET Frameworks 3.5 is required. Hope this helps. Shaun All documents and related graphics, codes are provided "AS IS" without warranty of any ...
For those of you who missed the chat today, here is the raw transcript. By raw, I mean that I copied and pasted the discussion without any edits. This is divided into two parts, the top part is the answers from the Microsoft Experts and the bottom part is the questions from the audience. Answers from Microsoft: Karel Danihelka [MS] (Expert)[2010-3-30 12:2]: Hi everyone, my name is Karel Danihelka and I am developer in partner response team. Sing Wee [MS] (Expert)[2010-3-30 12:2]: Hi, I'm Sing Wee, ...