<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for Timothy A. Graupmann</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/tgraupmann648/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for Timothy A. Graupmann</title><link>http://channel9.msdn.com/Niners/tgraupmann648/</link></image><description>Entries, comments and threads posted by Timothy A. Graupmann</description><link>http://channel9.msdn.com/Niners/tgraupmann648/</link><language>en-us</language><pubDate>Sat, 14 Feb 2009 07:10:25 GMT</pubDate><lastBuildDate>Sat, 14 Feb 2009 07:10:25 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Diskspace used by BinaryFormat Serialization [Diskspace used by BinaryFormat Serialization]</title><description>I'm comparing the size taken by serializing an object with 3 bytes of data. I'm creating 9 X 104 X 104 = 97,344 instances and serializing them. I would expect the space taken to be around 292,032 bytes with some misc serialization header stuff. I'm making the same mistake elsewhere so that accounts for the (N bytes) starting 1.4M larger.&lt;br&gt;&lt;br&gt;This takes the minimal amount of space. (1,655,687 bytes)&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;[Serializable]&lt;br&gt;public class MyObject&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp; public byte _a;&lt;br&gt;&amp;nbsp;&amp;nbsp; public byte _b;&lt;br&gt;&amp;nbsp;&amp;nbsp; public byte _c;&lt;br&gt;}&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;Followed by an array: (3,115,802 bytes)&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;
[Serializable]&lt;br&gt;
public class MyObject&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp; public byte[] _data = new byte[3];&lt;br&gt;&amp;nbsp;&amp;nbsp; public MyObject()&lt;br&gt;
&amp;nbsp;&amp;nbsp; {&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data[0] = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data[1] = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data[2] = 0;&lt;br&gt;
&amp;nbsp;&amp;nbsp; }&lt;br&gt;
}&lt;br&gt;
[/code]&lt;br&gt;&lt;br&gt;Followed by a list: (5,354,993 bytes)&lt;br&gt;
&lt;br&gt;
[code]&lt;br&gt;

[Serializable]&lt;br&gt;

public class MyObject&lt;br&gt;

{&lt;br&gt;

&amp;nbsp;&amp;nbsp; public List&amp;lt;byte&amp;gt; _data = new List&amp;lt;byte&amp;gt;();&lt;br&gt;&amp;nbsp;&amp;nbsp; public MyObject()&lt;br&gt;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data.Add(0);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data.Add(0);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _data.Add(0);&lt;br&gt;&amp;nbsp;&amp;nbsp; }&lt;br&gt;

}&lt;br&gt;

[/code]&lt;br&gt;&lt;br&gt;How can I get the a fixed array to use the same space as the 3 byte variables?&lt;br&gt;&lt;br&gt;[code]&lt;br&gt;BinaryFormatter bf =&lt;br&gt;&amp;nbsp;&amp;nbsp; new BinaryFormatter();&lt;br&gt;&lt;br&gt;bf.Serialize(fs, myObject);&lt;br&gt;[/code]&lt;br&gt;&lt;br&gt;When I have an object with 3 bytes, I want it to take 3 bytes of disk space.&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/457435-Diskspace-used-by-BinaryFormat-Serialization/'&gt;Diskspace used by BinaryFormat Serialization&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/457435/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/457435-Diskspace-used-by-BinaryFormat-Serialization/</comments><link>http://channel9.msdn.com/forums/TechOff/457435-Diskspace-used-by-BinaryFormat-Serialization/</link><pubDate>Sat, 14 Feb 2009 05:45:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/457435-Diskspace-used-by-BinaryFormat-Serialization/</guid><evnet:views>1035</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/457435/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I'm comparing the size taken by serializing an object with 3 bytes of data. I'm creating 9 X 104 X 104 = 97,344 instances and serializing them. I would expect the space taken to be around 292,032 bytes with some misc serialization header stuff. I'm making the same mistake elsewhere so that accounts&amp;#8230;</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/457435-Diskspace-used-by-BinaryFormat-Serialization/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/457435/Trackback.aspx</trackback:ping></item><item><title>C++ Web References in VS 2008 [C++ Web References in VS 2008]</title><description>After loads of searching, it turns out that Microsoft officially
removed SOAP support from Visual Studio 2008 C++. The code can be added
from &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1631110&amp;amp;SiteID=1"&gt;[CodePlex]&lt;/a&gt;.
Basically, a portion of the code became open source and was removed
from Visual Studio to avoid potential legal issues in the future. This
functionality is referred to as the &lt;a href="http://www.codeplex.com/AtlServer"&gt;[AtlServer]&lt;/a&gt;. &lt;a href="http://blogs.msdn.com/vcblog/default.aspx"&gt;[VS Team Studio blog]&lt;/a&gt; has a post about the separation being a good thing. But really, not having the web reference integrated, this sucks.&lt;br&gt;&lt;br&gt;Even using VS 2005, proxy generation isn't great. Instead of creating the proper structs, I get a bunch of BSTR and wchar_t strings.&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/429165-C-Web-References-in-VS-2008/'&gt;C++ Web References in VS 2008&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/429165/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/429165-C-Web-References-in-VS-2008/</comments><link>http://channel9.msdn.com/forums/TechOff/429165-C-Web-References-in-VS-2008/</link><pubDate>Tue, 23 Sep 2008 19:20:17 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/429165-C-Web-References-in-VS-2008/</guid><evnet:views>1146</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/429165/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>After loads of searching, it turns out that Microsoft officially
removed SOAP support from Visual Studio 2008 C++. The code can be added
from [CodePlex].
Basically, a portion of the code became open source and was removed
from Visual Studio to avoid potential legal issues in the future.&amp;#8230;</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/429165-C-Web-References-in-VS-2008/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/429165/Trackback.aspx</trackback:ping></item><item><title>Vista Install missing spellcheck [Vista Install missing spellcheck]</title><description>I was just installing Vista Ultimate 64-bit when I saw this typo.&lt;br&gt;&lt;br&gt;&lt;blockquote&gt;&lt;div class="quoteText"&gt;Please wait while Windows checks your com puter's performance.&lt;/div&gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/426276-Vista-Install-missing-spellcheck/'&gt;Vista Install missing spellcheck&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/426276/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/426276-Vista-Install-missing-spellcheck/</comments><link>http://channel9.msdn.com/forums/TechOff/426276-Vista-Install-missing-spellcheck/</link><pubDate>Sun, 07 Sep 2008 23:21:42 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/426276-Vista-Install-missing-spellcheck/</guid><evnet:views>606</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/426276/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I was just installing Vista Ultimate 64-bit when I saw this typo.Please wait while Windows checks your com puter's performance.in reply to Vista Install missing spellcheck</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/426276-Vista-Install-missing-spellcheck/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/426276/Trackback.aspx</trackback:ping></item><item><title>Detecting errors in PNG image [Detecting errors in PNG image]</title><description>I have a PNG image that when I open in Gimp or VirtualDub, it tells me there's a problem with the image. And visually I can see that the bottom of the image is black because it's been truncated.&lt;br&gt;&lt;br&gt;But when I open with System.Drawing.Bitmap = new Bitmap("my.png"), I do not see a format exception at all. There are no properties that indicate a problem that I can see.&lt;br&gt;&lt;br&gt;How can I predetect an issue with an image so that I can do some error handling?&lt;br&gt;&lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;~Tim&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/423905-Detecting-errors-in-PNG-image/'&gt;Detecting errors in PNG image&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/423905/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/423905-Detecting-errors-in-PNG-image/</comments><link>http://channel9.msdn.com/forums/TechOff/423905-Detecting-errors-in-PNG-image/</link><pubDate>Thu, 28 Aug 2008 17:32:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/423905-Detecting-errors-in-PNG-image/</guid><evnet:views>432</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/423905/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I have a PNG image that when I open in Gimp or VirtualDub, it tells me there's a problem with the image. And visually I can see that the bottom of the image is black because it's been truncated.But when I open with System.Drawing.Bitmap = new Bitmap("my.png"), I do not see a format exception at all.&amp;#8230;</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>4</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/423905-Detecting-errors-in-PNG-image/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/423905/Trackback.aspx</trackback:ping></item><item><title>New Site Redesign Slow [New Site Redesign Slow]</title><description>Holy Glory this site is slow using Firefox 3. I'm not sure if the cause is AJAX or what. My CPU is at 5%, so it's not the client. Other sites are fast.&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/410568-New-Site-Redesign-Slow/'&gt;New Site Redesign Slow&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/410568/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/410568-New-Site-Redesign-Slow/</comments><link>http://channel9.msdn.com/forums/TechOff/410568-New-Site-Redesign-Slow/</link><pubDate>Fri, 20 Jun 2008 03:08:20 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/410568-New-Site-Redesign-Slow/</guid><evnet:views>1206</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/410568/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Holy Glory this site is slow using Firefox 3. I'm not sure if the cause is AJAX or what. My CPU is at 5%, so it's not the client. Other sites are fast.in reply to New Site Redesign Slow</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/410568-New-Site-Redesign-Slow/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/410568/Trackback.aspx</trackback:ping></item><item><title>C# Detect 32 bit or 64 bit OS [C# Detect 32 bit or 64 bit OS]</title><description>Is there a way to detect whether the OS is 32 bit or 64 bit?&lt;br&gt;&lt;br&gt;I was thinking I could check for the registry node:&lt;br&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node&lt;br&gt;&lt;br&gt;But there could be an easier way...&lt;br&gt;&lt;br&gt;Thoughts?&lt;br&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/TechOff/410567-C-Detect-32-bit-or-64-bit-OS/'&gt;C# Detect 32 bit or 64 bit OS&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/410567/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/TechOff/410567-C-Detect-32-bit-or-64-bit-OS/</comments><link>http://channel9.msdn.com/forums/TechOff/410567-C-Detect-32-bit-or-64-bit-OS/</link><pubDate>Fri, 20 Jun 2008 03:03:04 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/410567-C-Detect-32-bit-or-64-bit-OS/</guid><evnet:views>7462</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/410567/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Is there a way to detect whether the OS is 32 bit or 64 bit?I was thinking I could check for the registry node:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432NodeBut there could be an easier way...Thoughts?in reply to C# Detect 32 bit or 64 bit OS</evnet:previewtext><dc:creator>Timothy A. Graupmann</dc:creator><slash:comments>17</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/TechOff/410567-C-Detect-32-bit-or-64-bit-OS/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/410567/Trackback.aspx</trackback:ping></item></channel></rss>