<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>COM&#43; on Bits and Pieces</title>
		<link>https://bits.strawjackal.org/tags/com&#43;/</link>
		<description>Recent content in COM&#43; on Bits and Pieces</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Thu, 30 Aug 2007 14:35:25 +0200</lastBuildDate>
		
			<atom:link href="https://bits.strawjackal.org/tags/com+/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Wrong constructor called in COM&#43;: sneaky, sneaky bug</title>
				<link>https://bits.strawjackal.org/130/</link>
				<pubDate>Thu, 30 Aug 2007 14:35:25 +0200</pubDate>
				<guid>https://bits.strawjackal.org/130/</guid>
				<description>&lt;p&gt;Here&#39;s another nasty one that tried to bite me today. Let&#39;s say I have the following classes:&lt;/p&gt; &lt;div style=&#34;border-right: black 1px solid; border-top: black 1px solid; padding: 4px; border-left: black 1px solid; border-bottom: black 1px solid&#34;&gt;&lt;font face=&#34;courier new&#34;&gt;public class COMPlusClass : ServicedComponent&lt;br&gt;{&lt;br&gt;   public COMPlusClass()&lt;br&gt;   {&lt;br&gt;      // Default initialization.&lt;br&gt;   }&lt;br&gt;&lt;br&gt;   public COMPlusClass (string data)&lt;br&gt;   {&lt;br&gt;      // Parameterized initialization.&lt;br&gt;   }&lt;br&gt;}&lt;br&gt;&lt;br&gt;public class Client&lt;br&gt;{&lt;br&gt;    public Client()&lt;br&gt;    {&lt;br&gt;       COMPlusClass cpc = new COMPlusClass(&#34;I am a client&#34;);&lt;br&gt;    }&lt;br&gt;}&lt;/font&gt;&lt;/div&gt; &lt;p&gt;Which constructor do you think will be called?&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
