Archive : Visual Studio

Visual Studio Debug Problem with IE8

1
Digg me

Thanks to  : Abdulla AbdelHaq
Source : http://weblogs.asp.net/abdullaabdelhaq/archive/2009/06/01/VS-Debug-Problem-with-IE8.aspx
 
How VS debugger could be crashed with IE8?
If you opened multiple instances of IE8 and you attempt to debug your project, you mostly will have the issue where VS debugger just stops and ignores your break points!
Why was that?
Well, IE 8 has a feature called Loosely-Coupled Internet Explorer (LCIE) which results in IE running across multiple processes. 
http://www.microsoft.com/windows/internet-explorer/beta/readiness/developers-existing.aspx#lcie
Older versions of the Visual Studio Debugger get confused by this and cannot figure out how to attach to the correct process. 
To overcome this issue, you need to disable the process growth feature of LCIE by follow the below steps:
1)  Open RegEdit
2)  Browse to HKEY_LOCALMACHINE -> SOFTWARE -> Microsoft -> Internet Explorer -> Main
3)  Add a dword under this key called TabProcGrowth
4)  Set TabProcGrowth to 0
 If you run into the same problem on Vista or newer, you will also need to turn off protected mode.
And then go a head and start debugging your code.

What I like the most

1
Digg me

There are many Free and Better alternatives for list mentioned below. I like them because they make my life simple.
Microsoft
1. Windows
2. Office (Word, Excel, Outlook, Power point, Access)
3. Visual Studio
4. Notepad
5. Microsoft Shared View
6. Microsoft Security Essentials
7. Snipping Tool
8. SQLServer
Google
1. Search
2. Gmail
3. Picasa
4. Chrome
5. Reader
6. Bookmarks
Apple
1. iPhone
2. iTunes
Adobe
1. Photoshop
2. Reader
Freebies
1. Advance System Care
2. Core FTP
3. Mp3 Tag
4. DropBox
5. Stickies
Open Source
1. Word Press
2. Audacity
3. SM Player
4. 7-Zip
5. NHM Writer
6. DVD Decrypter

Disable .pdb file generation in Release Mode

0
Digg me

Visual Studio 2005 – Compile Options

In Visual Studio 2005, .pdb file gets generated in Debug mode and Release mode.

In debug mode it loads the entire symbol table, in Release mode it loads the key symbols.

In Release mode, the generated .pdb can be deleted very well deleted. (Because framework does not uses it)

To disable .pdb generation in Release mode, goto

Project Properties > Compile Tab > Advanced Compile Options

Goto Generate Debug Info (dropdown list) and select None.

Validation (XHTML 1.0 Transitional): A newer construct is recommended.

3
Digg me

Validation (XHTML 1.0 Transitional): Attribute ‘name’ is considered outdated. A newer construct is recommended.
Deprecated Elements & Attributes and Newer Constructs
XHTML 1.0 Transitional

Elements

Newer Constructs

<menu />
Use another list type.

<u />
Use CSS property “text-decoration” and set its value to “underline”.

<s />
Use CSS property “text-decoration” and set its value to “line-through”.

<strike />
Use CSS property “text-decoration” and set its value to “line-through”.

<basefont />
Use CSS styling and set the “font-family” property to desired font.

<font />
Use CSS styling to set the property of the element, such as a DIV or SPAN.The CSS properties include:

color
font-family
font-size
text-decoration
text-align
text-indent
text-transform
font-weight

<applet />
Use the <object /> tag

<isindex />
Use the <input /> tag

<i />
Use the <em /> tag

<b />
Use the <strong /> tag

Elements / Attributes

Newer Constructs

Iframe

name
Use the ID attribute

align
Use the CSS property “text-align”

body

background
Use the CSS property “background-image” or “background”.

bgcolor
Use the CSS property “background-color” or “background”.

text
Use the CSS property “color” for the “body” style

link
Use the CSS section “a:link” and set the property “color”.

vlink
Use the CSS section “a:visited” and set the property “color”.

alink
“a:hover” and set the property “color”.

div / p / h1…h6

align
Use the CSS property “text-align”.

ul / ol / li

type
Use the CSS property “list-style-type” or “list-style”.

compact
This attribute has been removed from the HTML DOM 1.0

hr

align
Use the CSS property “text-align”.

noshade
Use the CSS property “color”.

size
Use the CSS property “height”.

width
Use the CSS property “width”.

pre

width
Use the CSS property “width”.

name
Use the attribute “id”.

br

clear
Use the CSS property “clear”.

object

align
Use the CSS property “vertical-align” and “text-align” in the parent tag

border
Use the CSS property “border”.

hspace
Use the CSS property “padding”.

vspace
Use the CSS property “padding”.

img

name
Use the attribute “id”.

align
Use the CSS property “vertical-align” and “text-align” in the parent tag

border
Use the CSS property “border”.

hspace
Use the CSS property “padding”.

vspace
Use the CSS property “padding”.

map

name
Use the attribute “id”.

input

align
Use the CSS property “vertical-align” and “text-align”

legend

name
Use the attribute “id”.

table

align
Set table’s CSS properties left-margin and right-margin at “auto” for centering, or right-margin to 0 for right alignment, or the left-margin to 0 for left alignment.

bgcolor
Use the CSS property “background-color”.

tr

bgcolor
Use the CSS property “background-color”.

td, th

nowrap
Use the CSS property “word-wrap”.

bgcolor
Use the CSS property “background-color”.

width
Use the CSS property “width”.

height
Use the CSS property “height”.

PDF copy of the same is attached for download.