<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Furo&#039;s World &#187; .NET</title>
	<atom:link href="http://www.furo.fr/category/dot_net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.furo.fr</link>
	<description>Welcome to my piece of web!</description>
	<lastBuildDate>Fri, 15 Jul 2011 08:59:33 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>&#8220;Cannot obtain value of local or argument&#8221; &#8220;as it is not available at this instruction pointer, possibly because it has been optimized away.&#8221;</title>
		<link>http://www.furo.fr/2008/05/08/cannot-obtain-value-of-local-or-argument-as-it-is-not-available-at-this-instruction-pointer-possibly-because-it-has-been-optimized-away/</link>
		<comments>http://www.furo.fr/2008/05/08/cannot-obtain-value-of-local-or-argument-as-it-is-not-available-at-this-instruction-pointer-possibly-because-it-has-been-optimized-away/#comments</comments>
		<pubDate>Thu, 08 May 2008 17:27:16 +0000</pubDate>
		<dc:creator>Flotueur</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[exception]]></category>

		<guid isPermaLink="false">http://www.furo.fr/?p=24</guid>
		<description><![CDATA[Welcome in the weird world of C#! Sometimes you say: &#8220;Programming is simply, if you know how things work then you can debug or fix every problems!&#8221;. But when something not understandable happens, well&#8230; you just have your eyes to cry! In my case I was doing a small part of code, following a tutorial. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-18 alignleft" style="margin: 10px; float: left;" title="Logo .NET" src="http://www.furo.fr/wp-content/200px-visual_basic_net_logo1.jpg" alt="" width="141" height="76" />Welcome in the weird world of <strong>C#</strong>! Sometimes you say: &#8220;Programming is simply, if you know <strong>how things work</strong> then you can debug or fix every problems!&#8221;. But when something <strong>not understandable</strong> happens, well&#8230; you just have your eyes to cry!</p>
<p>In my case I was doing a small part of code, following a tutorial. Everything was crystal clear. But at the execution, this error happened:</p>
<blockquote><p><strong><code>Cannot obtain value of local or argument XXXXX as it is not available at this instruction pointer, possibly because it has been optimized away.</code></strong></p></blockquote>
<p>So I began to search, and it was honestly the first time that the Microsoft search engine gave me <strong>more answer</strong> than Google! And what a surprise when I discovered that all the occurrence found were people that had this problem and that the problem was <strong>completely different from mine</strong>. Going further, I discovered that in the most cases, having this exception is <strong>a known problem of the framework</strong>: I couldn&#8217;t do nothing about it.</p>
<p>So basicaly, it is a <strong>weakness in the .NET 2.0 framework</strong>. Don&#8217;t ask me more, people from who i got the intell didn&#8217;t knew much more. but since my speciality is to be stubborn I tried a few things and found something that could interest you if you are in the same case.</p>
<p>In fact, when you execute the line of code that returns this exception, <strong>it is like </strong>it is executed 2 times so a solution is to surround your code by this:</p>
<blockquote><p><code>Try{<br />
Your_expression;<br />
}<br />
catch{Exception}</code></p></blockquote>
<p>Your expression will be evaluated and will return the exception but with no effect. Ok, it is <strong>quick and dirty</strong> but it works, and can help you if like me, you don&#8217;t have a choice.</p>
<p>If you have any feedback about that issue, <strong>please leave a comment</strong>!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.furo.fr/2008/05/08/cannot-obtain-value-of-local-or-argument-as-it-is-not-available-at-this-instruction-pointer-possibly-because-it-has-been-optimized-away/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ContextMenu and TreeView in C#</title>
		<link>http://www.furo.fr/2008/03/28/contextmenu-and-treeview-in-c/</link>
		<comments>http://www.furo.fr/2008/03/28/contextmenu-and-treeview-in-c/#comments</comments>
		<pubDate>Fri, 28 Mar 2008 17:51:31 +0000</pubDate>
		<dc:creator>Flotueur</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[contextMenu]]></category>
		<category><![CDATA[TreeView]]></category>

		<guid isPermaLink="false">http://www.furo.fr/2008/03/28/contextmenu-and-treeview-in-c/</guid>
		<description><![CDATA[Since a lot of time, I had a problem with the ContextMenuStrip on my application: when a user did a right-click on a node in one of my tree without having selected with left-click first, the node meant to be selected was not! To fix that, just add this code on your tree &#8220;treeView1&#8243; when [...]]]></description>
			<content:encoded><![CDATA[<p align="left"><img src="http://www.furo.fr/wp-content/200px-visual_basic_net_logo1.thumbnail.jpg" alt="Logo .NET" align="left" hspace="10" vspace="10" />Since a lot of time, I had a problem with the <strong>ContextMenuStrip </strong>on my application: when a user did a <strong>right-click</strong> on a node in one of my tree <strong>without having selected with left-click first</strong>, the node meant to be selected <strong>was not</strong>!</p>
<p>To fix that, just <strong>add this code</strong> on your tree &#8220;treeView1&#8243; when the <strong>event </strong>&#8220;MouseDown&#8221; occurs:</p>
<blockquote><p><code>private void treeView1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)<br />
{<br />
TreeNode tn = treeView1.GetNodeAt(e.X, e.Y);<br />
treeView1.SelectedNode = tn;<br />
}</code></p></blockquote>
<p>Troubles are finished for my customers! (and by extension for me as well <img src='http://www.furo.fr/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.furo.fr/2008/03/28/contextmenu-and-treeview-in-c/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Visual Studio 2005 and ClearCase</title>
		<link>http://www.furo.fr/2008/03/20/visual-studio-2005-and-clearcase/</link>
		<comments>http://www.furo.fr/2008/03/20/visual-studio-2005-and-clearcase/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 18:18:52 +0000</pubDate>
		<dc:creator>Flotueur</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[ClearCase]]></category>
		<category><![CDATA[configuration management]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.furo.fr/2008/03/20/visual-studio-2005-and-clearcase/</guid>
		<description><![CDATA[ClearCase is one of the references when you deal about configuration management. It allows to manage a project&#8217;s life cycle, control changes on this project, proposes version and workspace management and of course, allows team development (multi-site). ClearCase works with what it calls Vobs(Versioned Object Base) and Views. Basically, all the data, such as code [...]]]></description>
			<content:encoded><![CDATA[<p align="justify"><img src="http://www.furo.fr/wp-content/images.thumbnail.jpg" alt="ClearCaseLogo" align="left" hspace="10" vspace="10" /> <strong>ClearCase </strong>is one of the references when you deal about configuration management. It allows to manage a project&#8217;s life cycle, control changes on this project, proposes version and workspace management and of course, allows team development (multi-site).</p>
<p align="justify">    ClearCase works with what it calls Vobs(<strong>V</strong>ersioned <strong>O</strong>bject <strong>B</strong>ase) and <strong>Views</strong>. Basically, all the data, such as code files and documents, are stored into entities named Vobs. Those vobs are the repositories in which each developer will create their branch, manage and their project. To access those Vobs, they need to be <strong>mounted as a virtual file</strong> system through a <em>dynamic view</em> for example. So you can use your repository like any mounted drive on your OS! Of course, when you are editing or creating a file, you work on a private copy so there is no risk to erase project&#8217;s source whithout a commit.</p>
<p style="text-align: center" align="right"><img src="http://www.furo.fr/wp-content/cchbadm.thumbnail.gif" alt="ClearCase" align="right" hspace="10" vspace="10" /></p>
<p align="justify">    Speaking of which, there is no notions of commit in CC, instead you use <strong>Check-out/Check-in</strong> commands.  The first one is well known by CVS or SVN and the second acts as a commit. What about add or delete for example? They are managed by the view in your OS and validated by the Check-in! For example if you want to add a file, just copy paste it in you view!</p>
<p align="justify">    Anyway, I&#8217;m not here to sell that product so let&#8217;s concentrate on development: ok it looks nice and different from other code management tool but how to use it with an IDE like <strong>Visual Studio 2005</strong>?</p>
<p align="justify">&nbsp;</p>
<p>Well it is pretty simple <img src='http://www.furo.fr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="justify">&nbsp;</p>
<p align="justify">    Visual Studio 2005 comes with a very useful tool which is &#8220;<strong>Source Control</strong>&#8220;. Visual Studio source control is simply an environment for third party source control plug-ins so to enjoy it you have to install the plug-in of your favorite tool.</p>
<p align="justify">    In our case, ClearCase (mouahahah, case-case, ok I&#8217;m out&#8230;) plug-in can be found on IBM/Rationnal web site (<a href="http://www-1.ibm.com/support/docview.wss?rs=984&amp;context=SSSH27&amp;context=SSSH3S&amp;context=SSSTY3&amp;context=SSCSNZN&amp;context=SSSTWP&amp;context=SSCGQ7B&amp;context=SSCGQ7D&amp;context=SSCSP7T&amp;dc=D410&amp;uid=swg24010813&amp;loc=en_US&amp;cs=utf-8&amp;lang=en" title="here">here</a>). Once this plug-in is installed, you have to <strong>activate </strong>it in Visual Studio options and <strong>source control</strong> will appear in the File menu.</p>
<p style="text-align: center" align="center"><a href="http://www.furo.fr/wp-content/cc-in-vs2k5.JPG" title="ClearCase in VS2k5"></a></p>
<p style="text-align: center"><a href="http://www.furo.fr/wp-content/cc-in-vs2k5.JPG" title="ClearCase in VS2k5"><img src="http://www.furo.fr/wp-content/cc-in-vs2k5.thumbnail.JPG" alt="ClearCase in VS2k5" /></a></p>
<p align="justify">    It is nearly finished! First <strong>copy your project</strong> in your new ClearCase view and open the VS solution. Just go in &#8220;<em>File/Source Control/Change Source Control</em>&#8221; and <strong>bind</strong> your new project to the view.</p>
<p align="justify">    And that&#8217;s it! Now you have the possibility to <strong>check-in/out</strong>, <strong>merge code</strong>, view history and everything you can do with ClearCase from VS. Of course, depending on your setup things will be different but I&#8217;ll detail it another time!</p>
<p align="justify">&nbsp;</p>
<p align="justify">    For now, the point is that with the Visual Studio Source control, you can manage easily your project configuration on ClearCase but also with other software of that kind (cvs, svn,&#8230;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.furo.fr/2008/03/20/visual-studio-2005-and-clearcase/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

