<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Calvin Hsia's WebLog - All Comments</title><link>http://blogs.msdn.com/b/calvin_hsia/</link><description>thoughts from a professional developer</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Use Perfmon to analyze your managed memory </title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/08/27/10055187.aspx#10407036</link><pubDate>Tue, 02 Apr 2013 19:51:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10407036</guid><dc:creator>Rhys</dc:creator><description>&lt;p&gt;No method for Initialize component?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10407036" width="1" height="1"&gt;</description></item><item><title>re: Create your own typing tutor!</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2006/01/23/516322.aspx#10406609</link><pubDate>Mon, 01 Apr 2013 00:54:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10406609</guid><dc:creator>Aaron Bell</dc:creator><description>&lt;p&gt;I want to start my own Typing Program online and how can I do that?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10406609" width="1" height="1"&gt;</description></item><item><title>re: The Fast Fourier Transform</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2005/09/16/469722.aspx#10405181</link><pubDate>Mon, 25 Mar 2013 17:49:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10405181</guid><dc:creator>Abey</dc:creator><description>&lt;p&gt;Hi, I wonder if you met Dr. John Makhoul&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10405181" width="1" height="1"&gt;</description></item><item><title>re: Add a manifest to control your application Vista UAC behavior</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2007/04/13/add-a-manifest-to-control-your-application-vista-uac-behavior.aspx#10400482</link><pubDate>Thu, 07 Mar 2013 22:44:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10400482</guid><dc:creator>Paul Symons</dc:creator><description>&lt;p&gt;This doesn&amp;#39;t work on large exe&amp;#39;s. My one is over 36M and the fread fails. &amp;nbsp;But by putting the fread that reads the code contents in a loop - It can be made to work...&lt;/p&gt;
&lt;p&gt;As in&lt;/p&gt;
&lt;p&gt;j =20&lt;/p&gt;
&lt;p&gt;FOR i = 1 TO j&lt;/p&gt;
&lt;p&gt;	FSEEK( m.lnHandle, m.lnPos - 14, 0 )&lt;/p&gt;
&lt;p&gt;	lcPmt = FREAD( m.lnHandle, 14 ) &amp;amp;&amp;amp;last 14 bytes of the file&lt;/p&gt;
&lt;p&gt;	lnSig = BITAND(CTOBIN( LEFT( m.lcPmt, 2 ), &amp;quot;2sr&amp;quot; ) ,0xffff )&lt;/p&gt;
&lt;p&gt;	lnSize = CTOBIN( SUBSTR( m.lcPmt, 11, 4 ), &amp;quot;4sr&amp;quot; )&lt;/p&gt;
&lt;p&gt;	*? i, lnSize, lnSig, TRANSFORM( lnSig, &amp;quot;@0x&amp;quot; )&lt;/p&gt;
&lt;p&gt;	IF NOT m.lnSig == FOX_SIG&lt;/p&gt;
&lt;p&gt;		lnExeSections = i - 1&lt;/p&gt;
&lt;p&gt;		EXIT&lt;/p&gt;
&lt;p&gt;	ENDIF&lt;/p&gt;
&lt;p&gt;	FSEEK( m.lnHandle, m.lnPos - m.lnSize, 0 )&lt;/p&gt;
&lt;p&gt;*!*		DIMENSION laExeSections[ i ]&lt;/p&gt;
&lt;p&gt;*!*		laExeSections[ i ] = FREAD( m.lnHandle, m.lnSize )&lt;/p&gt;
&lt;p&gt;	lnChunksize = m.lnSize&lt;/p&gt;
&lt;p&gt;	DO WHILE lnChunkSize &amp;gt;0&lt;/p&gt;
&lt;p&gt;		&amp;amp;&amp;amp; If the exe is too big - it can&amp;#39;t read it&lt;/p&gt;
&lt;p&gt;		IF VARTYPE(laExeSections[ i ]) != &amp;#39;L&amp;#39;&lt;/p&gt;
&lt;p&gt;			i = m.i + 1&lt;/p&gt;
&lt;p&gt;			j = m.j + 1&lt;/p&gt;
&lt;p&gt;		ENDIF&lt;/p&gt;
&lt;p&gt;		DIMENSION laExeSections[ i ]&lt;/p&gt;
&lt;p&gt;		laExeSections[ i ] = FREAD( m.lnHandle, MIN(m.lnChunkSize,10000000) )&lt;/p&gt;
&lt;p&gt;		lnChunkSize = m.lnChunksize -10000000&lt;/p&gt;
&lt;p&gt;	ENDDO&lt;/p&gt;
&lt;p&gt;	lnPos = m.lnPos - m.lnSize&lt;/p&gt;
&lt;p&gt;ENDFOR&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10400482" width="1" height="1"&gt;</description></item><item><title>re: Foxpro Performance tip: field name lookup for tables</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2004/12/14/301282.aspx#10391729</link><pubDate>Thu, 07 Feb 2013 02:26:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10391729</guid><dc:creator>[WJ]VFPNewbie</dc:creator><description>&lt;p&gt;a question guys,, supposing, you want to search a grid, using a textbox with the interactive change,, how do you do this? damn, i wont be able to graduate if wont get this write,, a little help please? im really new to vfp, heres my email if any of u is willing to help me,, neo.outlook21@gmail.com&lt;/p&gt;
&lt;p&gt;thank you....&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10391729" width="1" height="1"&gt;</description></item><item><title>re: Adding a new ADO.NET Entity Data Model "Error HRESULT E_FAIL has been returned from a call to a COM component"</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/12/27/10109339.aspx#10379809</link><pubDate>Thu, 20 Dec 2012 15:58:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10379809</guid><dc:creator>Raj Verma</dc:creator><description>&lt;p&gt;Thank you so much for the solution, I guess I should have expected this from MS, its really weird.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10379809" width="1" height="1"&gt;</description></item><item><title>re: Out of memory? Easy ways to increase the memory available to your program</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx#10378028</link><pubDate>Fri, 14 Dec 2012 04:58:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10378028</guid><dc:creator>Shubham</dc:creator><description>&lt;p&gt;Let Me Know where is the problem during compiling......&lt;/p&gt;
&lt;p&gt;Error	4	The build was aborted because of an internal failure.&lt;/p&gt;
&lt;p&gt;System.OutOfMemoryException: Exception of type &amp;#39;System.OutOfMemoryException&amp;#39; was thrown.&lt;/p&gt;
&lt;p&gt;at Microsoft.Build.BuildEngine.BuildItem..ctor(String itemName, ITaskItem taskItem)&lt;/p&gt;
&lt;p&gt;at Microsoft.Build.BuildEngine.TaskEngine.GatherGeneratedTaskOutputs(TaskOutput ...................&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10378028" width="1" height="1"&gt;</description></item><item><title>re: Out of memory? Easy ways to increase the memory available to your program</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx#10372271</link><pubDate>Tue, 27 Nov 2012 16:56:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10372271</guid><dc:creator>EricLaw [ex-MSFT]</dc:creator><description>&lt;p&gt;Does the fact that IntPtr is a signed value impact the ability to use this type (e.g. for PInvoke) when LargeAddressAware is enabled? Or does it still marshal cleanly to other native code?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10372271" width="1" height="1"&gt;</description></item><item><title>re: Out of memory? Easy ways to increase the memory available to your program</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx#10366630</link><pubDate>Wed, 07 Nov 2012 18:39:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10366630</guid><dc:creator>Mias Van Den Berg</dc:creator><description>&lt;p&gt;Being able to store information for users and for the application in server memory is really awesome when you are developing asp.net web applications. I have in the past abused it a little and at on point I had a web application which would actually throw a OutOfMemory exception every now and then. I started searching for tool which would help me analyze session objects and application state objects. After an extensive search, I came accross the Asp.Net Web Profiler, which allows for viewing session variable values which has been declared in different sessions and their sizes to be particular. It displays variables and objects which has been declared in the application state, the current session state as well as in all user sessions and the asp.net cache. You can download it from &amp;lt;a href=&amp;quot;&lt;a rel="nofollow" target="_new" href="http://www.aspwebprofiler.com&amp;quot;&amp;gt;www.aspwebprofiler.com&amp;lt;/a&amp;gt;"&gt;http://www.aspwebprofiler.com&amp;quot;&amp;gt;www.aspwebprofiler.com&amp;lt;/a&amp;gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It also alows for drill down into object properties in order to detect large objects and optimizing them for memory usage. This way I could detect large sessions and realized that I had the same large object which runs in every user session. I moved it to the application state and my problem was solved.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10366630" width="1" height="1"&gt;</description></item><item><title>re: Adding a new ADO.NET Entity Data Model "Error HRESULT E_FAIL has been returned from a call to a COM component"</title><link>http://blogs.msdn.com/b/calvin_hsia/archive/2010/12/27/10109339.aspx#10333327</link><pubDate>Wed, 25 Jul 2012 14:51:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10333327</guid><dc:creator>Bob in So. Cal.</dc:creator><description>&lt;p&gt;Huh, who wouldv&amp;#39;e thunk it? &amp;nbsp;Thanks so much, not only for the solution to a problem I NEVER would have figured out on my own, but for writing clearly enough, and with enough good keywords, that I was able to find your article quickly and easily amidst all of the Internet clutter!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10333327" width="1" height="1"&gt;</description></item></channel></rss>